aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/pata_imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c
index 121c748314c3..161769343ce7 100644
--- a/drivers/ata/pata_imx.c
+++ b/drivers/ata/pata_imx.c
@@ -131,8 +131,8 @@ static int pata_imx_probe(struct platform_device *pdev)
131 131
132 io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 132 io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
133 priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); 133 priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res);
134 if (!priv->host_regs) { 134 if (IS_ERR(priv->host_regs)) {
135 ret = -EBUSY; 135 ret = PTR_ERR(priv->host_regs);
136 goto err; 136 goto err;
137 } 137 }
138 138