Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270251
b: refs/heads/master
c: dce7c75
h: refs/heads/master
i:
  270249: 1e57ec1
  270247: 283db23
v: v3
  • Loading branch information
Sahitya Tummala authored and Chris Ball committed Oct 26, 2011
1 parent 9db351d commit b8f7f0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: e91957e70d2aea529ff2055b8fbd575f2d7b8c3b
refs/heads/master: dce7c756c84160424b3aea5ec36f221946bdc6f7
14 changes: 11 additions & 3 deletions trunk/drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ msmsdcc_probe(struct platform_device *pdev)
host->base = ioremap(memres->start, PAGE_SIZE);
if (!host->base) {
ret = -ENOMEM;
goto out;
goto host_free;
}

host->cmd_irqres = cmd_irqres;
Expand All @@ -1230,13 +1230,15 @@ msmsdcc_probe(struct platform_device *pdev)
/*
* Setup DMA
*/
msmsdcc_init_dma(host);
ret = msmsdcc_init_dma(host);
if (ret)
goto ioremap_free;

/* Get our clocks */
host->pclk = clk_get(&pdev->dev, "sdc_pclk");
if (IS_ERR(host->pclk)) {
ret = PTR_ERR(host->pclk);
goto host_free;
goto dma_free;
}

host->clk = clk_get(&pdev->dev, "sdc_clk");
Expand Down Expand Up @@ -1377,6 +1379,12 @@ msmsdcc_probe(struct platform_device *pdev)
clk_put(host->clk);
pclk_put:
clk_put(host->pclk);
dma_free:
dma_free_coherent(NULL, sizeof(struct msmsdcc_nc_dmadata),
host->dma.nc, host->dma.nc_busaddr);
ioremap_free:
tasklet_kill(&host->dma_tlet);
iounmap(host->base);
host_free:
mmc_free_host(mmc);
out:
Expand Down

0 comments on commit b8f7f0a

Please sign in to comment.