diff options
Diffstat (limited to 'kernel/drivers/pinctrl/pinctrl-tb10x.c')
-rw-r--r-- | kernel/drivers/pinctrl/pinctrl-tb10x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pinctrl/pinctrl-tb10x.c b/kernel/drivers/pinctrl/pinctrl-tb10x.c index 160a1f5e9..6546b9bb2 100644 --- a/kernel/drivers/pinctrl/pinctrl-tb10x.c +++ b/kernel/drivers/pinctrl/pinctrl-tb10x.c @@ -807,9 +807,9 @@ static int tb10x_pinctrl_probe(struct platform_device *pdev) } state->pctl = pinctrl_register(&tb10x_pindesc, dev, state); - if (!state->pctl) { + if (IS_ERR(state->pctl)) { dev_err(dev, "could not register TB10x pin driver\n"); - ret = -EINVAL; + ret = PTR_ERR(state->pctl); goto fail; } |