summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-09 16:07:42 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-09-20 23:04:41 +0200
commit51a97d829e32b7a1b960d3365e4c2546c9c792aa (patch)
treea86d558d885a5276fd4a0ff1b8729d4ea11424d3 /drivers
parentf6ffa5ee039cd0168d82e3edd712ebbb1de93a00 (diff)
downloadlinux-51a97d829e32b7a1b960d3365e4c2546c9c792aa.tar.gz
linux-51a97d829e32b7a1b960d3365e4c2546c9c792aa.tar.bz2
linux-51a97d829e32b7a1b960d3365e4c2546c9c792aa.zip
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')
-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 @@
#define IOP3XX_N_GPIOS 8
-void gpio_line_config(int line, int direction)
+static void gpio_line_config(int line, int direction)
{
unsigned long flags;
@@ -31,15 +31,13 @@ void gpio_line_config(int line, int direction)
}
local_irq_restore(flags);
}
-EXPORT_SYMBOL(gpio_line_config);
-int gpio_line_get(int line)
+static int gpio_line_get(int line)
{
return !!(*IOP3XX_GPID & (1 << line));
}
-EXPORT_SYMBOL(gpio_line_get);
-void gpio_line_set(int line, int value)
+static void gpio_line_set(int line, int value)
{
unsigned long flags;
@@ -51,7 +49,6 @@ void gpio_line_set(int line, int value)
}
local_irq_restore(flags);
}
-EXPORT_SYMBOL(gpio_line_set);
static int iop3xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
{