aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_rcar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_rcar.c')
-rw-r--r--drivers/ata/sata_rcar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c
index caf33f620c35..4799868bd733 100644
--- a/drivers/ata/sata_rcar.c
+++ b/drivers/ata/sata_rcar.c
@@ -17,6 +17,7 @@
17#include <linux/libata.h> 17#include <linux/libata.h>
18#include <linux/platform_device.h> 18#include <linux/platform_device.h>
19#include <linux/clk.h> 19#include <linux/clk.h>
20#include <linux/err.h>
20 21
21#define DRV_NAME "sata_rcar" 22#define DRV_NAME "sata_rcar"
22 23
@@ -799,9 +800,9 @@ static int sata_rcar_probe(struct platform_device *pdev)
799 800
800 host->private_data = priv; 801 host->private_data = priv;
801 802
802 priv->base = devm_request_and_ioremap(&pdev->dev, mem); 803 priv->base = devm_ioremap_resource(&pdev->dev, mem);
803 if (!priv->base) { 804 if (IS_ERR(priv->base)) {
804 ret = -EADDRNOTAVAIL; 805 ret = PTR_ERR(priv->base);
805 goto cleanup; 806 goto cleanup;
806 } 807 }
807 808