pata_arasan_cf: add missing clk_disable_unprepare() on error path
Subsystems (2)
PATCH 1/1 pata_arasan_cf: add missing clk_disable_unprepare() on error path
From: Wei Yongjun <[email protected]>
Add the missing clk_disable_unprepare() before return from cf_init() in the error handling case.
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/ata/pata_arasan_cf.c | 1 + 1 file changed, 1 insertion(+)
drivers/ata/pata_arasan_cf.c +1 -0
@@ -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; }
Quoted 9 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Add the missing
clk_disable_unprepare()before return fromcf_init()in the error handling case.Signed-off-by Wei Yongjun <[email protected]>--- drivers/ata/pata_arasan_cf.c | 1 + 1 file changed, 1 insertion(+)
Acked-by Viresh Kumar <[email protected]>
Tejun Heo
AppliedQuoted 6 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Add the missing
clk_disable_unprepare()before return fromcf_init()in the error handling case.Signed-off-by Wei Yongjun <[email protected]>
Applied to libata/for-3.13-fixes. Thanks.
Signature · 1 line
tejun