These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / pinctrl / pinctrl-tb10x.c
index 160a1f5..6546b9b 100644 (file)
@@ -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;
        }