pata_arasan_cf: fix ata_host_activate() failure handling
Add missing cf_exit() and clk_put() calls to ata_host_activate() failure path. Cc: Viresh Kumar <viresh.linux@gmail.com> Cc: Shiraz Hashim <shiraz.hashim@st.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
f5f85ee065
commit
151eea367c
@ -898,9 +898,12 @@ static int arasan_cf_probe(struct platform_device *pdev)
|
||||
|
||||
cf_card_detect(acdev, 0);
|
||||
|
||||
return ata_host_activate(host, acdev->irq, irq_handler, 0,
|
||||
&arasan_cf_sht);
|
||||
ret = ata_host_activate(host, acdev->irq, irq_handler, 0,
|
||||
&arasan_cf_sht);
|
||||
if (!ret)
|
||||
return 0;
|
||||
|
||||
cf_exit(acdev);
|
||||
free_clk:
|
||||
clk_put(acdev->clk);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user