Commit d3ad512a authored by Jarkko Lavinen's avatar Jarkko Lavinen Committed by Tony Lindgren

MMC: OMAP: Re-organizing some goto at hsmmc probe

Re-organizing some goto at hsmmc probe.
Signed-off-by: default avatarFrancisco Alecrim <francisco.alecrim@indt.org.br>
Signed-off-by: default avatarJarkko Lavinen <jarkko.lavinen@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8faa54f8
...@@ -877,7 +877,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev) ...@@ -877,7 +877,7 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
host); host);
if (ret) { if (ret) {
dev_dbg(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n"); dev_dbg(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n");
goto irq_err; goto err_irq;
} }
/* Request IRQ for card detect */ /* Request IRQ for card detect */
...@@ -887,18 +887,17 @@ static int __init omap_mmc_probe(struct platform_device *pdev) ...@@ -887,18 +887,17 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
host); host);
if (ret) { if (ret) {
dev_dbg(mmc_dev(host->mmc), dev_dbg(mmc_dev(host->mmc),
"Unable to grab MMC CD IRQ"); "Unable to grab MMC CD IRQ\n");
free_irq(host->irq, host); goto err_irq_cd;
goto irq_err;
} }
} }
INIT_WORK(&host->mmc_carddetect_work, mmc_omap_detect); INIT_WORK(&host->mmc_carddetect_work, mmc_omap_detect);
if (pdata->init != NULL) { if (pdata->init != NULL) {
if (pdata->init(&pdev->dev) != 0) { if (pdata->init(&pdev->dev) != 0) {
free_irq(mmc_slot(host).card_detect_irq, host); dev_dbg(mmc_dev(host->mmc),
free_irq(host->irq, host); "Unable to configure MMC IRQs\n");
goto irq_err; goto err_irq_cd_init;
} }
} }
...@@ -910,8 +909,11 @@ static int __init omap_mmc_probe(struct platform_device *pdev) ...@@ -910,8 +909,11 @@ static int __init omap_mmc_probe(struct platform_device *pdev)
return 0; return 0;
irq_err: err_irq_cd_init:
dev_dbg(mmc_dev(host->mmc), "Unable to configure MMC IRQs\n"); free_irq(mmc_slot(host).card_detect_irq, host);
err_irq_cd:
free_irq(host->irq, host);
err_irq:
clk_disable(host->fclk); clk_disable(host->fclk);
clk_disable(host->iclk); clk_disable(host->iclk);
clk_put(host->fclk); clk_put(host->fclk);
......
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