Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287634
b: refs/heads/master
c: 5ba85d9
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Chris Ball committed Feb 14, 2012
1 parent 6181ddf commit 8284809
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3de2be7368d2983bd7f7ddb6e9cf5ea32363128
refs/heads/master: 5ba85d95cae3837665241e6df12aea83b6bf7c32
16 changes: 9 additions & 7 deletions trunk/drivers/mmc/host/sh_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ static int __devinit sh_mmcif_probe(struct platform_device *pdev)
if (ret < 0)
goto clean_up2;

mmc_add_host(mmc);
INIT_DELAYED_WORK(&host->timeout_work, mmcif_timeout_work);

sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL);

Expand All @@ -1338,22 +1338,24 @@ static int __devinit sh_mmcif_probe(struct platform_device *pdev)
}
ret = request_threaded_irq(irq[1], sh_mmcif_intr, sh_mmcif_irqt, 0, "sh_mmc:int", host);
if (ret) {
free_irq(irq[0], host);
dev_err(&pdev->dev, "request_irq error (sh_mmc:int)\n");
goto clean_up3;
goto clean_up4;
}

INIT_DELAYED_WORK(&host->timeout_work, mmcif_timeout_work);

mmc_detect_change(host->mmc, 0);
ret = mmc_add_host(mmc);
if (ret < 0)
goto clean_up5;

dev_info(&pdev->dev, "driver version %s\n", DRIVER_VERSION);
dev_dbg(&pdev->dev, "chip ver H'%04x\n",
sh_mmcif_readl(host->addr, MMCIF_CE_VERSION) & 0x0000ffff);
return ret;

clean_up5:
free_irq(irq[1], host);
clean_up4:
free_irq(irq[0], host);
clean_up3:
mmc_remove_host(mmc);
pm_runtime_suspend(&pdev->dev);
clean_up2:
pm_runtime_disable(&pdev->dev);
Expand Down

0 comments on commit 8284809

Please sign in to comment.