diff options
Diffstat (limited to 'kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c')
-rw-r--r-- | kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c index f3b426cda..77d2221d3 100644 --- a/kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/kernel/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -706,9 +706,9 @@ int mvebu_pinctrl_probe(struct platform_device *pdev) } pctl->pctldev = pinctrl_register(&pctl->desc, &pdev->dev, pctl); - if (!pctl->pctldev) { + if (IS_ERR(pctl->pctldev)) { dev_err(&pdev->dev, "unable to register pinctrl driver\n"); - return -EINVAL; + return PTR_ERR(pctl->pctldev); } dev_info(&pdev->dev, "registered pinctrl driver\n"); |