pinctrl: return -ENOMEM instead of -EINVAL for kasprintf() failure
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 25 May 2016 11:14:13 +0000 (20:14 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 May 2016 08:33:00 +0000 (10:33 +0200)
commit1fb1f0540deae634d454f917e3d45c27b69521a8
tree626f4315ec6d90a083ce3ab72edfce3ea390aba9
parent8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac
pinctrl: return -ENOMEM instead of -EINVAL for kasprintf() failure

-ENOMEM is more suitable error code because kasprintf() fails
in case of memory shortage.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c