mmc: dw_mmc: fix err handle of dw_mci_probe

This patch add correct err handle if dw_mci_ctrl_reset
failed while probing.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Shawn Lin 2016-01-22 15:43:12 +08:00 committed by Ulf Hansson
parent e8cc37b8fc
commit 3744415cc4
1 changed files with 4 additions and 2 deletions

View File

@ -3063,8 +3063,10 @@ int dw_mci_probe(struct dw_mci *host)
} }
/* Reset all blocks */ /* Reset all blocks */
if (!dw_mci_ctrl_reset(host, SDMMC_CTRL_ALL_RESET_FLAGS)) if (!dw_mci_ctrl_reset(host, SDMMC_CTRL_ALL_RESET_FLAGS)) {
return -ENODEV; ret = -ENODEV;
goto err_clk_ciu;
}
host->dma_ops = host->pdata->dma_ops; host->dma_ops = host->pdata->dma_ops;
dw_mci_init_dma(host); dw_mci_init_dma(host);