projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48c4ac9
)
MIPS: Xway: Fix clk leak
author
Libo Chen
<
[email protected]
>
Fri, 17 May 2013 05:21:31 +0000
(
05:21
+0000)
committer
Ralf Baechle
<
[email protected]
>
Fri, 17 May 2013 18:35:53 +0000
(20:35 +0200)
When gptu_r32 fails, we should put clk before returning.
Signed-off-by: Libo Chen <
[email protected]
>
Acked-by: John Crispin <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
,
Cc:
[email protected]
Cc: LKML
[email protected]
Cc: Andrew Morton
[email protected]
Cc: Li Zefan
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5247/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/lantiq/xway/gptu.c
patch
|
blob
|
history
diff --git
a/arch/mips/lantiq/xway/gptu.c
b/arch/mips/lantiq/xway/gptu.c
index 9861c8669fab4047da01ad6af587ef948817d169..4fa577c1ddfdb47238a33be03aa6997e94915eac 100644
(file)
--- a/
arch/mips/lantiq/xway/gptu.c
+++ b/
arch/mips/lantiq/xway/gptu.c
@@
-169,6
+169,8
@@
static int gptu_probe(struct platform_device *pdev)
if (((gptu_r32(GPTU_ID) >> 8) & 0xff) != GPTU_MAGIC) {
dev_err(&pdev->dev, "Failed to find magic\n");
gptu_hwexit();
+ clk_disable(clk);
+ clk_put(clk);
return -ENAVAIL;
}