linux/drivers/pinctrl/mvebu
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: mvebu: add pinctrl driver for Marvell Armada 39x 2015-03-04 13:53:55 +01:00
Makefile pinctrl: mvebu: add pinctrl driver for Marvell Armada 39x 2015-03-04 13:53:55 +01:00
pinctrl-armada-38x.c pinctrl: mvebu: armada-38x: add ptp functions 2015-06-10 14:30:44 +02:00
pinctrl-armada-39x.c pinctrl: mvebu: armada-39x: add support for Armada 395 variant 2015-06-10 14:36:34 +02:00
pinctrl-armada-370.c pinctrl: mvebu: armada-370: align spi1 clock pin naming 2015-06-10 13:59:40 +02:00
pinctrl-armada-375.c pinctrl: mvebu: armada-{370,375}: normalize audio pins 2015-06-10 13:43:52 +02:00
pinctrl-armada-xp.c pinctrl: mvebu: armada-xp: add dram functions 2015-06-10 14:11:50 +02:00
pinctrl-dove.c pinctrl: dove: Constify struct regmap_config and of_device_id 2015-01-14 14:21:53 +01:00
pinctrl-kirkwood.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-mvebu.c pinctrl: make pinctrl_register() return proper error code 2015-06-10 14:49:52 +02:00
pinctrl-mvebu.h pinctrl: mvebu: remove MPP_REG_CTRL macro 2014-02-25 18:38:31 +01:00
pinctrl-orion.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00