summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c')
-rw-r--r--kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
index 9641f1c76..c3c692e50 100644
--- a/kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
+++ b/kernel/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
@@ -1425,9 +1425,9 @@ static int __init bcm281xx_pinctrl_probe(struct platform_device *pdev)
pctl = pinctrl_register(&bcm281xx_pinctrl_desc,
&pdev->dev,
pdata);
- if (!pctl) {
+ if (IS_ERR(pctl)) {
dev_err(&pdev->dev, "Failed to register pinctrl\n");
- return -ENODEV;
+ return PTR_ERR(pctl);
}
platform_set_drvdata(pdev, pdata);