summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-ingenic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c
index d8473d929cb1..d8e8842967d6 100644
--- a/drivers/pinctrl/pinctrl-ingenic.c
+++ b/drivers/pinctrl/pinctrl-ingenic.c
@@ -785,9 +785,9 @@ int ingenic_pinctrl_probe(struct platform_device *pdev)
}
jzpc->pctl = devm_pinctrl_register(dev, pctl_desc, jzpc);
- if (!jzpc->pctl) {
+ if (IS_ERR(jzpc->pctl)) {
dev_err(dev, "Failed to register pinctrl\n");
- return -EINVAL;
+ return PTR_ERR(jzpc->pctl);
}
for (i = 0; i < chip_info->num_groups; i++) {