summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata-imx.c')
-rw-r--r--drivers/ata/sata-imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c
index 450cf4f53f..1c0e1dbd7d 100644
--- a/drivers/ata/sata-imx.c
+++ b/drivers/ata/sata-imx.c
@@ -99,8 +99,8 @@ static int imx_sata_probe(struct device_d *dev)
}
imx_ahci->ahci.mmio_base = dev_request_mem_region(dev, 0);
- if (!imx_ahci->ahci.mmio_base)
- return -ENODEV;
+ if (IS_ERR(imx_ahci->ahci.mmio_base))
+ return PTR_ERR(imx_ahci->ahci.mmio_base);
data->init(imx_ahci);