From: Wei Yongjun Date: Thu, 21 Nov 2013 03:07:09 +0000 (+0800) Subject: pata_arasan_cf: add missing clk_disable_unprepare() on error path X-Git-Tag: accepted/tizen/common/20141203.182822~842^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c9e1499861f34919beb279ea8c7a40378486a24;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Tejun Heo Acked-by: Viresh Kumar --- diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index e88690e..73492dd 100644 --- 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; }