mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
mmc: dw_mmc: Check return value of dma_ops->init() in resume
dma_ops->init() may fail, should check the return value. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
c740532de0
commit
4db2a6c857
|
|
@ -3524,8 +3524,11 @@ int dw_mci_runtime_resume(struct device *dev)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (host->use_dma && host->dma_ops->init)
|
||||
host->dma_ops->init(host);
|
||||
if (host->use_dma && host->dma_ops->init) {
|
||||
ret = host->dma_ops->init(host);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Restore the initial value at FIFOTH register
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user