aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/imx/gpcv2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index e06bf12a1e4b..31b8d002d855 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -563,7 +563,6 @@ static int imx_gpcv2_probe(struct platform_device *pdev)
563 struct device *dev = &pdev->dev; 563 struct device *dev = &pdev->dev;
564 struct device_node *pgc_np, *np; 564 struct device_node *pgc_np, *np;
565 struct regmap *regmap; 565 struct regmap *regmap;
566 struct resource *res;
567 void __iomem *base; 566 void __iomem *base;
568 int ret; 567 int ret;
569 568
@@ -573,8 +572,7 @@ static int imx_gpcv2_probe(struct platform_device *pdev)
573 return -EINVAL; 572 return -EINVAL;
574 } 573 }
575 574
576 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 575 base = devm_platform_ioremap_resource(pdev, 0);
577 base = devm_ioremap_resource(dev, res);
578 if (IS_ERR(base)) 576 if (IS_ERR(base))
579 return PTR_ERR(base); 577 return PTR_ERR(base);
580 578