projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69042a
)
mmc: davinci_mmc: allow driver to work without DMA resource
author
Manjunathappa, Prakash
<
[email protected]
>
Tue, 5 Feb 2013 12:22:24 +0000
(17:52 +0530)
committer
Chris Ball
<
[email protected]
>
Fri, 22 Mar 2013 16:05:16 +0000
(12:05 -0400)
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 <
[email protected]
>
Tested-by: Sekhar Nori <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/davinci_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/davinci_mmc.c
b/drivers/mmc/host/davinci_mmc.c
index 20636772c09bd2aa2b794f44c3029e1f57559578..27123f8b7041222e6ae2298d50403e9b7d61babf 100644
(file)
--- 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)
r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
if (!r)
- goto out;
- host->rxdma = r->start;
+ dev_warn(&pdev->dev, "RX DMA resource not specified\n");
+ else
+ host->rxdma = r->start;
r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
if (!r)
- goto out;
- host->txdma = r->start;
+ dev_warn(&pdev->dev, "TX DMA resource not specified\n");
+ else
+ host->txdma = r->start;
host->mem_res = mem;
host->base = ioremap(mem->start, mem_size);