summaryrefslogtreecommitdiffstats
path: root/drivers/mci/atmel_mci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mci/atmel_mci.c')
-rw-r--r--drivers/mci/atmel_mci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index b36fbe3f97..10e769ea13 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -573,6 +573,8 @@ static int atmci_probe(struct device_d *hw_dev)
host->slot_b = pd->slot_b;
host->regs = dev_request_mem_region(hw_dev, 0);
+ if (IS_ERR(host->regs))
+ return PTR_ERR(host->regs);
host->hw_dev = hw_dev;
hw_dev->priv = host;
host->clk = clk_get(hw_dev, "mci_clk");