Skip to content

Commit

Permalink
pinctrl/abx500: replace incorrect return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lee Jones authored and Linus Walleij committed Feb 5, 2013
1 parent 49dcf08 commit 1abeebe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pinctrl/pinctrl-abx500.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,7 @@ int abx500_pin_config_get(struct pinctrl_dev *pctldev,
unsigned pin,
unsigned long *config)
{
/* Not implemented */
return -EINVAL;
return -ENOSYS;
}

int abx500_pin_config_set(struct pinctrl_dev *pctldev,
Expand Down

0 comments on commit 1abeebe

Please sign in to comment.