mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pata_samsung_cf: fix ata_host_activate() failure handling
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]>
This commit is contained in:
parent
151eea367c
commit
3608aeff47
1 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue