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 <[email protected]>
Cc: Kukjin Kim <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Reviewed-by: Jingoo Han <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
bzolnier authored and htejun 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.