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: Wei Yongjun <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
This commit is contained in:
Wei Yongjun 2013-11-21 11:07:09 +08:00 • committed by Tejun Heo
commit 6c9e149986

View file

@ -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;
}