Commit 6c9e1499 authored by Wei Yongjun's avatar Wei Yongjun Committed by Tejun Heo

pata_arasan_cf: add missing clk_disable_unprepare() on error path

Add the missing clk_disable_unprepare() before return from cf_init()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 2435dcb9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment