Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270256
b: refs/heads/master
c: 190657c
h: refs/heads/master
v: v3
  • Loading branch information
Subhash Jadavani authored and Chris Ball committed Oct 26, 2011
1 parent 4edc304 commit a91cdaa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 19207f056d6dd390f96749e643a222d48517f7b1
refs/heads/master: 190657c9f464b9f99a05a6ed8476c8bbccbc6a8b
15 changes: 10 additions & 5 deletions trunk/drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,9 +1242,13 @@ msmsdcc_probe(struct platform_device *pdev)
/*
* Setup DMA
*/
ret = msmsdcc_init_dma(host);
if (ret)
goto ioremap_free;
if (host->dmares) {
ret = msmsdcc_init_dma(host);
if (ret)
goto ioremap_free;
} else {
host->dma.channel = -1;
}

/* Get our clocks */
host->pclk = clk_get(&pdev->dev, "sdc_pclk");
Expand Down Expand Up @@ -1388,8 +1392,9 @@ msmsdcc_probe(struct platform_device *pdev)
pclk_put:
clk_put(host->pclk);
dma_free:
dma_free_coherent(NULL, sizeof(struct msmsdcc_nc_dmadata),
host->dma.nc, host->dma.nc_busaddr);
if (host->dmares)
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);
Expand Down

0 comments on commit a91cdaa

Please sign in to comment.