linux/drivers/pinctrl/spear
Masahiro Yamada 323de9efdf pinctrl: make pinctrl_register() return proper error code
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 <yamada.masahiro@socionext.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Lee Jones <lee@kernel.org>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Ray Jui <rjui@broadcom.com>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Acked-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-06-10 14:49:52 +02:00
..
Kconfig pinctrl: spear: switch plgpio to irqchip helpers 2014-06-19 09:35:12 +02:00
Makefile pinctrl: SPEAr: Add plgpio driver 2012-11-11 19:06:00 +01:00
pinctrl-plgpio.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pinctrl-spear3xx.c pinctrl: SPEAr: Add gpio ranges support 2012-11-11 19:07:03 +01:00
pinctrl-spear3xx.h pinctrl: SPEAr3xx: correct register space to configure pwm 2012-11-05 12:33:37 +01:00
pinctrl-spear300.c pinctrl: spear: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-spear310.c pinctrl: spear: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-spear320.c pinctrl: spear: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-spear1310.c pinctrl: spear: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-spear1340.c pinctrl: spear: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-spear.c pinctrl: make pinctrl_register() return proper error code 2015-06-10 14:49:52 +02:00
pinctrl-spear.h Drivers: pinctrl: remove __dev* attributes. 2013-01-03 15:57:02 -08:00