projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2435dcb
)
pata_arasan_cf: add missing clk_disable_unprepare() on error path
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 21 Nov 2013 03:07:09 +0000
(11:07 +0800)
committer
Tejun Heo
<tj@kernel.org>
Fri, 22 Nov 2013 22:38:31 +0000
(17:38 -0500)
Add the missing clk_disable_unprepare() before return from cf_init()
in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/ata/pata_arasan_cf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_arasan_cf.c
b/drivers/ata/pata_arasan_cf.c
index e88690ebfd827b8a02558c4b611b474a4f8c4a1e..73492dd4a4bce8aade1f79a7dbdfd3926c7f6f6b 100644
(file)
--- a/
drivers/ata/pata_arasan_cf.c
+++ b/
drivers/ata/pata_arasan_cf.c
@@
-319,6
+319,7
@@
static int cf_init(struct arasan_cf_dev *acdev)
ret = clk_set_rate(acdev->clk, 166000000);
if (ret) {
dev_warn(acdev->host->dev, "clock set rate failed");
+ clk_disable_unprepare(acdev->clk);
return ret;
}