summaryrefslogtreecommitdiffstats
path: root/drivers/mci/imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mci/imx.c')
-rw-r--r--drivers/mci/imx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mci/imx.c b/drivers/mci/imx.c
index 6992177af6..9c8c1b1e27 100644
--- a/drivers/mci/imx.c
+++ b/drivers/mci/imx.c
@@ -508,6 +508,8 @@ static int mxcmci_probe(struct device_d *dev)
host->mci.hw_dev = dev;
host->base = dev_request_mem_region(dev, 0);
+ if (IS_ERR(host->base))
+ return PTR_ERR(host->base);
host->mci.voltages = MMC_VDD_32_33 | MMC_VDD_33_34;