-
Masahiro Yamada authored
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.pincha...
323de9ef