diff options
author | Manjunathappa, Prakash <prakash.pm@ti.com> | 2013-02-05 07:22:24 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 12:05:16 -0400 |
commit | e3e020f8acbd39a6feb1b6903725aaf658b0fec4 (patch) | |
tree | ee1432f71cddd61f549d7d65350172a50a4cdc39 /drivers/mmc/host | |
parent | c69042a51e7d890c373345a7e524e895b266eb72 (diff) |
mmc: davinci_mmc: allow driver to work without DMA resource
Do not return probe failure with missing DMA resources, allow driver
to work in PIO mode. Tested on da850-evm by mounting partition
followed by file creation and deletion.
Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/davinci_mmc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 20636772c09b..27123f8b7041 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c | |||
@@ -1190,13 +1190,15 @@ static int __init davinci_mmcsd_probe(struct platform_device *pdev) | |||
1190 | 1190 | ||
1191 | r = platform_get_resource(pdev, IORESOURCE_DMA, 0); | 1191 | r = platform_get_resource(pdev, IORESOURCE_DMA, 0); |
1192 | if (!r) | 1192 | if (!r) |
1193 | goto out; | 1193 | dev_warn(&pdev->dev, "RX DMA resource not specified\n"); |
1194 | host->rxdma = r->start; | 1194 | else |
1195 | host->rxdma = r->start; | ||
1195 | 1196 | ||
1196 | r = platform_get_resource(pdev, IORESOURCE_DMA, 1); | 1197 | r = platform_get_resource(pdev, IORESOURCE_DMA, 1); |
1197 | if (!r) | 1198 | if (!r) |
1198 | goto out; | 1199 | dev_warn(&pdev->dev, "TX DMA resource not specified\n"); |
1199 | host->txdma = r->start; | 1200 | else |
1201 | host->txdma = r->start; | ||
1200 | 1202 | ||
1201 | host->mem_res = mem; | 1203 | host->mem_res = mem; |
1202 | host->base = ioremap(mem->start, mem_size); | 1204 | host->base = ioremap(mem->start, mem_size); |