summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pinctrl/pinctrl-palmas.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pinctrl/pinctrl-palmas.c')
-rw-r--r--kernel/drivers/pinctrl/pinctrl-palmas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pinctrl/pinctrl-palmas.c b/kernel/drivers/pinctrl/pinctrl-palmas.c
index 2631df050..f7e168044 100644
--- a/kernel/drivers/pinctrl/pinctrl-palmas.c
+++ b/kernel/drivers/pinctrl/pinctrl-palmas.c
@@ -1044,9 +1044,9 @@ static int palmas_pinctrl_probe(struct platform_device *pdev)
palmas_pinctrl_desc.pins = palmas_pins_desc;
palmas_pinctrl_desc.npins = ARRAY_SIZE(palmas_pins_desc);
pci->pctl = pinctrl_register(&palmas_pinctrl_desc, &pdev->dev, pci);
- if (!pci->pctl) {
+ if (IS_ERR(pci->pctl)) {
dev_err(&pdev->dev, "Couldn't register pinctrl driver\n");
- return -ENODEV;
+ return PTR_ERR(pci->pctl);
}
return 0;
}