diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-adi2.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-adi2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index 8434439c5017..873433da0f2c 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c | |||
@@ -703,6 +703,7 @@ static struct pinmux_ops adi_pinmux_ops = { | |||
703 | .get_function_name = adi_pinmux_get_func_name, | 703 | .get_function_name = adi_pinmux_get_func_name, |
704 | .get_function_groups = adi_pinmux_get_groups, | 704 | .get_function_groups = adi_pinmux_get_groups, |
705 | .gpio_request_enable = adi_pinmux_request_gpio, | 705 | .gpio_request_enable = adi_pinmux_request_gpio, |
706 | .strict = true, | ||
706 | }; | 707 | }; |
707 | 708 | ||
708 | 709 | ||
@@ -1069,9 +1070,9 @@ static int adi_pinctrl_probe(struct platform_device *pdev) | |||
1069 | 1070 | ||
1070 | /* Now register the pin controller and all pins it handles */ | 1071 | /* Now register the pin controller and all pins it handles */ |
1071 | pinctrl->pctl = pinctrl_register(&adi_pinmux_desc, &pdev->dev, pinctrl); | 1072 | pinctrl->pctl = pinctrl_register(&adi_pinmux_desc, &pdev->dev, pinctrl); |
1072 | if (!pinctrl->pctl) { | 1073 | if (IS_ERR(pinctrl->pctl)) { |
1073 | dev_err(&pdev->dev, "could not register pinctrl ADI2 driver\n"); | 1074 | dev_err(&pdev->dev, "could not register pinctrl ADI2 driver\n"); |
1074 | return -EINVAL; | 1075 | return PTR_ERR(pinctrl->pctl); |
1075 | } | 1076 | } |
1076 | 1077 | ||
1077 | platform_set_drvdata(pdev, pinctrl); | 1078 | platform_set_drvdata(pdev, pinctrl); |