aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/imx/gpc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
index 7d14a4b4e82a..a8f1e47ce698 100644
--- a/drivers/soc/imx/gpc.c
+++ b/drivers/soc/imx/gpc.c
@@ -406,7 +406,6 @@ static int imx_gpc_probe(struct platform_device *pdev)
406 const struct imx_gpc_dt_data *of_id_data = of_id->data; 406 const struct imx_gpc_dt_data *of_id_data = of_id->data;
407 struct device_node *pgc_node; 407 struct device_node *pgc_node;
408 struct regmap *regmap; 408 struct regmap *regmap;
409 struct resource *res;
410 void __iomem *base; 409 void __iomem *base;
411 int ret; 410 int ret;
412 411
@@ -417,8 +416,7 @@ static int imx_gpc_probe(struct platform_device *pdev)
417 !pgc_node) 416 !pgc_node)
418 return 0; 417 return 0;
419 418
420 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 419 base = devm_platform_ioremap_resource(pdev, 0);
421 base = devm_ioremap_resource(&pdev->dev, res);
422 if (IS_ERR(base)) 420 if (IS_ERR(base))
423 return PTR_ERR(base); 421 return PTR_ERR(base);
424 422