Thread (1 message) 1 message, 1 author, 2015-06-09

Re: [PATCH] pinctrl: make pinctrl_register() return proper error code

From: Heiko Stübner <hidden>
Date: 2015-06-09 08:03:56
Also in: linux-gpio, linux-mediatek, linux-rockchip, linux-samsung-soc

Possibly related (same subject, not in this thread)

Am Dienstag, 9. Juni 2015, 13:01:16 schrieb Masahiro Yamada:
Currently, pinctrl_register() just returns NULL on error, so the
callers can not know the exact reason of the failure.

Some of the pinctrl drivers return -EINVAL, some -ENODEV, and some
-ENOMEM on error of pinctrl_register(), although the error code
might be different from the real cause of the error.

This commit reworks pinctrl_register() to return the appropriate
error code and modifies all of the pinctrl drivers to use IS_ERR()
for the error checking and PTR_ERR() for getting the error code.

Signed-off-by: Masahiro Yamada <redacted>
---
for
 drivers/pinctrl/pinctrl-rockchip.c            |  4 ++--
Acked-by: Heiko Stuebner <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help