diff options
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-spmi-gpio.c')
| -rw-r--r-- | drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index ae4115e4b4ef..bd1e24598e12 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | |||
| @@ -778,8 +778,8 @@ static int pmic_gpio_probe(struct platform_device *pdev) | |||
| 778 | state->chip.can_sleep = false; | 778 | state->chip.can_sleep = false; |
| 779 | 779 | ||
| 780 | state->ctrl = pinctrl_register(pctrldesc, dev, state); | 780 | state->ctrl = pinctrl_register(pctrldesc, dev, state); |
| 781 | if (!state->ctrl) | 781 | if (IS_ERR(state->ctrl)) |
| 782 | return -ENODEV; | 782 | return PTR_ERR(state->ctrl); |
| 783 | 783 | ||
| 784 | ret = gpiochip_add(&state->chip); | 784 | ret = gpiochip_add(&state->chip); |
| 785 | if (ret) { | 785 | if (ret) { |
