diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-09-09 15:00:40 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-20 23:04:28 +0200 |
commit | f6ffa5ee039cd0168d82e3edd712ebbb1de93a00 (patch) | |
tree | 11d5146f0880949f9f01eddd16fa05262b17c3a9 /drivers/gpio/gpio-iop.c | |
parent | afc3b79f5dbddd4ab210beb9cc6da102a1032b89 (diff) |
gpio: decouple the IOP GPIO driver from platform
This removes the only dependence between the IOP GPIO
driver and the GENERIC_GPIO header in <mach/gpio.h>
and its common implementation in the <asm/*> namespace
by copying the one constant it is using into the driver
file.
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-iop.c')
-rw-r--r-- | drivers/gpio/gpio-iop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 697de6dc4936..d4a170dfe504 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -16,8 +16,8 @@ #include <linux/errno.h> #include <linux/gpio.h> #include <linux/export.h> -#include <asm/hardware/iop3xx.h> -#include <mach/gpio.h> + +#define IOP3XX_N_GPIOS 8 void gpio_line_config(int line, int direction) { |