diff options
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-imx1-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-imx1-core.c b/drivers/pinctrl/pinctrl-imx1-core.c index 4d5a9e74dc8f..f77914ac081a 100644 --- a/drivers/pinctrl/pinctrl-imx1-core.c +++ b/drivers/pinctrl/pinctrl-imx1-core.c | |||
@@ -615,8 +615,8 @@ int imx1_pinctrl_core_probe(struct platform_device *pdev, | |||
615 | 615 | ||
616 | ipctl->base = devm_ioremap_nocache(&pdev->dev, res->start, | 616 | ipctl->base = devm_ioremap_nocache(&pdev->dev, res->start, |
617 | resource_size(res)); | 617 | resource_size(res)); |
618 | if (IS_ERR(ipctl->base)) | 618 | if (!ipctl->base) |
619 | return PTR_ERR(ipctl->base); | 619 | return -ENOMEM; |
620 | 620 | ||
621 | pctl_desc = &imx1_pinctrl_desc; | 621 | pctl_desc = &imx1_pinctrl_desc; |
622 | pctl_desc->name = dev_name(&pdev->dev); | 622 | pctl_desc->name = dev_name(&pdev->dev); |