projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: dw_mmc: Fix null dma_ops access when use_dma is false
[cascardo/linux.git]
/
drivers
/
mmc
/
host
/
dw_mmc.c
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index
5a600b3
..
72dc3cd
100644
(file)
--- a/
drivers/mmc/host/dw_mmc.c
+++ b/
drivers/mmc/host/dw_mmc.c
@@
-2186,7
+2186,7
@@
int dw_mci_resume(struct dw_mci *host)
return ret;
}
- if (host->dma_ops->init)
+ if (host->
use_dma && host->
dma_ops->init)
host->dma_ops->init(host);
/* Restore the old value at FIFOTH register */