diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-12-20 06:11:19 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-02-05 07:54:22 -0500 |
commit | 1abeebeaa5c0d577c1c66c19aa75470fcefd8396 (patch) | |
tree | df46274b591a1eae4aa592b9da4a00f4e9c6b0ae /drivers/pinctrl/pinctrl-abx500.c | |
parent | 49dcf086e42c990639b84152e29ebd5aa49d6dde (diff) |
pinctrl/abx500: replace incorrect return value
Currently in the empty abx500_pin_config_get() function, we're
returning -EINVAL, with a comment stating that the reason for the
failure is that the function isn't implemented yet. Well there's
a proper return code for that. If we use it, we can do away with
the comment too, as it would be implied.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-abx500.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index 539c9bb2fdfa..305a9cb5cf80 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c | |||
@@ -971,8 +971,7 @@ int abx500_pin_config_get(struct pinctrl_dev *pctldev, | |||
971 | unsigned pin, | 971 | unsigned pin, |
972 | unsigned long *config) | 972 | unsigned long *config) |
973 | { | 973 | { |
974 | /* Not implemented */ | 974 | return -ENOSYS; |
975 | return -EINVAL; | ||
976 | } | 975 | } |
977 | 976 | ||
978 | int abx500_pin_config_set(struct pinctrl_dev *pctldev, | 977 | int abx500_pin_config_set(struct pinctrl_dev *pctldev, |