Skip to content

Commit

Permalink
pata_samsung_cf: fix ata_host_activate() failure handling
Browse files Browse the repository at this point in the history
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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Tejun Heo committed Apr 15, 2014
1 parent 151eea3 commit 3608aef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/ata/pata_samsung_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,13 @@ static int __init pata_s3c_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, host);

return ata_host_activate(host, info->irq,
info->irq ? pata_s3c_irq : NULL,
0, &pata_s3c_sht);
ret = ata_host_activate(host, info->irq,
info->irq ? pata_s3c_irq : NULL,
0, &pata_s3c_sht);
if (ret)
goto stop_clk;

return 0;

stop_clk:
clk_disable(info->clk);
Expand Down

0 comments on commit 3608aef

Please sign in to comment.