|
@@ -1881,7 +1881,8 @@ static void dw_mci_init_dma(struct dw_mci *host)
|
|
if (!host->dma_ops)
|
|
if (!host->dma_ops)
|
|
goto no_dma;
|
|
goto no_dma;
|
|
|
|
|
|
- if (host->dma_ops->init) {
|
|
|
|
|
|
+ if (host->dma_ops->init && host->dma_ops->start &&
|
|
|
|
+ host->dma_ops->stop && host->dma_ops->cleanup) {
|
|
if (host->dma_ops->init(host)) {
|
|
if (host->dma_ops->init(host)) {
|
|
dev_err(&host->dev, "%s: Unable to initialize "
|
|
dev_err(&host->dev, "%s: Unable to initialize "
|
|
"DMA Controller.\n", __func__);
|
|
"DMA Controller.\n", __func__);
|