Commit 3608aeff authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Tejun Heo

pata_samsung_cf: fix ata_host_activate() failure handling

Add missing clk_disable() call to ata_host_activate() failure path.

Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 151eea36
...@@ -594,9 +594,13 @@ static int __init pata_s3c_probe(struct platform_device *pdev) ...@@ -594,9 +594,13 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, host); platform_set_drvdata(pdev, host);
return ata_host_activate(host, info->irq, ret = ata_host_activate(host, info->irq,
info->irq ? pata_s3c_irq : NULL, info->irq ? pata_s3c_irq : NULL,
0, &pata_s3c_sht); 0, &pata_s3c_sht);
if (ret)
goto stop_clk;
return 0;
stop_clk: stop_clk:
clk_disable(info->clk); clk_disable(info->clk);
......
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