sh-pfc: Remove dependency on GPIOLIB
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 9 Apr 2013 14:06:01 +0000 (14:06 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Jun 2013 12:03:59 +0000 (21:03 +0900)
Make GPIO support optional for platforms that don't support GPIOLIB.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/Kconfig
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/sh_pfc.h

index 9f0217bcd7545682a6b856dda3ed612bc8dd7643..a0b6bd0b1993622005eb66043bc72789ab8a3e8c 100644 (file)
@@ -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
index ee4a4d6dbc3cef91cdca3dd20d3d5d783dbf6127..6ec746f0339b7c8ce653f56c97e3f009abfafbef 100644 (file)
@@ -11,6 +11,7 @@
 #define __SH_PFC_CORE_H__
 
 #include <linux/compiler.h>
+#include <linux/spinlock.h>
 #include <linux/types.h>
 
 #include "sh_pfc.h"
index 3b785fc428d5b1c9211c19fbceb0f763a721e385..b1707612d24f05753308373431bc553e49b669ab 100644 (file)
@@ -11,8 +11,8 @@
 #ifndef __SH_PFC_H
 #define __SH_PFC_H
 
+#include <linux/bug.h>
 #include <linux/stringify.h>
-#include <asm-generic/gpio.h>
 
 typedef unsigned short pinmux_enum_t;