diff options
| -rw-r--r-- | drivers/ata/pata_samsung_cf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c index a79566d05666..0610e78c8a2a 100644 --- a/drivers/ata/pata_samsung_cf.c +++ b/drivers/ata/pata_samsung_cf.c | |||
| @@ -594,9 +594,13 @@ static int __init pata_s3c_probe(struct platform_device *pdev) | |||
| 594 | 594 | ||
| 595 | platform_set_drvdata(pdev, host); | 595 | platform_set_drvdata(pdev, host); |
| 596 | 596 | ||
| 597 | return ata_host_activate(host, info->irq, | 597 | ret = ata_host_activate(host, info->irq, |
| 598 | info->irq ? pata_s3c_irq : NULL, | 598 | info->irq ? pata_s3c_irq : NULL, |
| 599 | 0, &pata_s3c_sht); | 599 | 0, &pata_s3c_sht); |
| 600 | if (ret) | ||
| 601 | goto stop_clk; | ||
| 602 | |||
| 603 | return 0; | ||
| 600 | 604 | ||
| 601 | stop_clk: | 605 | stop_clk: |
| 602 | clk_disable(info->clk); | 606 | clk_disable(info->clk); |
