pinctrl: meson: fix incorrect usage of ENOSYS
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 20 Sep 2017 14:08:15 +0000 (16:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Sep 2017 12:18:12 +0000 (14:18 +0200)
ENOSYS is special and should only be used for incorrect syscall number.
It is not the case here. let's use ENOTSUPP instead.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/meson/pinctrl-meson.c

index 66ed70c..ca8883e 100644 (file)
@@ -399,7 +399,7 @@ static int meson_pinconf_group_set(struct pinctrl_dev *pcdev,
 static int meson_pinconf_group_get(struct pinctrl_dev *pcdev,
                                   unsigned int group, unsigned long *config)
 {
-       return -ENOSYS;
+       return -ENOTSUPP;
 }
 
 static const struct pinconf_ops meson_pinconf_ops = {