aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx.c')
-rw-r--r--drivers/pinctrl/pinctrl-imx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
index 43a6f1ffc786..4cebb9c6c5c5 100644
--- a/drivers/pinctrl/pinctrl-imx.c
+++ b/drivers/pinctrl/pinctrl-imx.c
@@ -584,9 +584,9 @@ int imx_pinctrl_probe(struct platform_device *pdev,
584 if (!res) 584 if (!res)
585 return -ENOENT; 585 return -ENOENT;
586 586
587 ipctl->base = devm_request_and_ioremap(&pdev->dev, res); 587 ipctl->base = devm_ioremap_resource(&pdev->dev, res);
588 if (!ipctl->base) 588 if (IS_ERR(ipctl->base))
589 return -EBUSY; 589 return PTR_ERR(ipctl->base);
590 590
591 imx_pinctrl_desc.name = dev_name(&pdev->dev); 591 imx_pinctrl_desc.name = dev_name(&pdev->dev);
592 imx_pinctrl_desc.pins = info->pins; 592 imx_pinctrl_desc.pins = info->pins;