pinctrl: single: Fix a couple error codes
commit712778d02d5c24e0bb5cfb9ccb9213496853a57f
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Nov 2016 11:41:51 +0000 (16 14:41 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Nov 2016 19:56:19 +0000 (16 20:56 +0100)
tree9900c29cff035bb1042135009340eb69dbc9cb04
parentd8a22212737314cc02692cc90eda7d844fa20257
pinctrl: single: Fix a couple error codes

We should return -ENOMEM instead of success if pcs_add_function() fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c