From: Linus Walleij Date: Mon, 9 Sep 2013 13:00:40 +0000 (+0200) Subject: gpio: decouple the IOP GPIO driver from platform X-Git-Tag: v3.13-rc1~120^2~57^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6ffa5ee039cd0168d82e3edd712ebbb1de93a00;p=kernel%2Fkernel-generic.git gpio: decouple the IOP GPIO driver from platform This removes the only dependence between the IOP GPIO driver and the GENERIC_GPIO header in and its common implementation in the namespace by copying the one constant it is using into the driver file. Cc: Lennert Buytenhek Cc: Dan Williams Cc: Mikael Pettersson Tested-by: Aaro Koskinen Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 697de6d..d4a170d 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -16,8 +16,8 @@ #include #include #include -#include -#include + +#define IOP3XX_N_GPIOS 8 void gpio_line_config(int line, int direction) {