summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata-imx.c')
-rw-r--r--drivers/ata/pata-imx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c
index 6bd7524a6a..d8deba1461 100644
--- a/drivers/ata/pata-imx.c
+++ b/drivers/ata/pata-imx.c
@@ -161,6 +161,8 @@ static int imx_pata_probe(struct device_d *dev)
ide = xzalloc(sizeof(*ide));
base = dev_request_mem_region(dev, 0);
+ if (IS_ERR(base))
+ return PTR_ERR(base);
clk = clk_get(dev, NULL);
if (IS_ERR(clk)) {