aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-iop.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-09 10:07:42 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-20 17:04:41 -0400
commit51a97d829e32b7a1b960d3365e4c2546c9c792aa (patch)
treea86d558d885a5276fd4a0ff1b8729d4ea11424d3 /drivers/gpio/gpio-iop.c
parentf6ffa5ee039cd0168d82e3edd712ebbb1de93a00 (diff)
ARM: plat-iop: remove custom complex GPIO implementation
The kernel will now only use gpiolib to access GPIOs, so remove the complex GPIO flag and the custom implementation. 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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c
index d4a170dfe504..17cc7010cd04 100644
--- a/drivers/gpio/gpio-iop.c
+++ b/drivers/gpio/gpio-iop.c
@@ -19,7 +19,7 @@
19 19
20#define IOP3XX_N_GPIOS 8 20#define IOP3XX_N_GPIOS 8
21 21
22void gpio_line_config(int line, int direction) 22static void gpio_line_config(int line, int direction)
23{ 23{
24 unsigned long flags; 24 unsigned long flags;
25 25
@@ -31,15 +31,13 @@ void gpio_line_config(int line, int direction)
31 } 31 }
32 local_irq_restore(flags); 32 local_irq_restore(flags);
33} 33}
34EXPORT_SYMBOL(gpio_line_config);
35 34
36int gpio_line_get(int line) 35static int gpio_line_get(int line)
37{ 36{
38 return !!(*IOP3XX_GPID & (1 << line)); 37 return !!(*IOP3XX_GPID & (1 << line));
39} 38}
40EXPORT_SYMBOL(gpio_line_get);
41 39
42void gpio_line_set(int line, int value) 40static void gpio_line_set(int line, int value)
43{ 41{
44 unsigned long flags; 42 unsigned long flags;
45 43
@@ -51,7 +49,6 @@ void gpio_line_set(int line, int value)
51 } 49 }
52 local_irq_restore(flags); 50 local_irq_restore(flags);
53} 51}
54EXPORT_SYMBOL(gpio_line_set);
55 52
56static int iop3xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) 53static int iop3xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
57{ 54{