From: Laurent Pinchart Date: Tue, 9 Apr 2013 14:06:01 +0000 (+0000) Subject: sh-pfc: Remove dependency on GPIOLIB X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bf9f0674e39ee2070d39c2bd2febef42c31b3fc0;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git sh-pfc: Remove dependency on GPIOLIB Make GPIO support optional for platforms that don't support GPIOLIB. Signed-off-by: Laurent Pinchart Acked-by: Linus Walleij Signed-off-by: Simon Horman --- diff --git a/drivers/pinctrl/sh-pfc/Kconfig b/drivers/pinctrl/sh-pfc/Kconfig index 9f0217bcd754..a0b6bd0b1993 100644 --- a/drivers/pinctrl/sh-pfc/Kconfig +++ b/drivers/pinctrl/sh-pfc/Kconfig @@ -5,8 +5,6 @@ if ARCH_SHMOBILE || SUPERH config PINCTRL_SH_PFC - # XXX move off the gpio dependency - depends on GPIOLIB select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB select PINMUX select PINCONF diff --git a/drivers/pinctrl/sh-pfc/core.h b/drivers/pinctrl/sh-pfc/core.h index ee4a4d6dbc3c..6ec746f0339b 100644 --- a/drivers/pinctrl/sh-pfc/core.h +++ b/drivers/pinctrl/sh-pfc/core.h @@ -11,6 +11,7 @@ #define __SH_PFC_CORE_H__ #include +#include #include #include "sh_pfc.h" diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index 3b785fc428d5..b1707612d24f 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -11,8 +11,8 @@ #ifndef __SH_PFC_H #define __SH_PFC_H +#include #include -#include typedef unsigned short pinmux_enum_t;