summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-09-22 08:07:00 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-01 23:37:34 +0100
commitbd5f12a24766c1f299def0a78b008d4746f528f2 (patch)
treeca700136d12bf56f50d5048e96c39a26ed953bd1 /drivers/gpio
parentea5abbd215b749b2ff14397a47a5e65741c67bf4 (diff)
downloadlinux-3.10-bd5f12a24766c1f299def0a78b008d4746f528f2.tar.gz
linux-3.10-bd5f12a24766c1f299def0a78b008d4746f528f2.tar.bz2
linux-3.10-bd5f12a24766c1f299def0a78b008d4746f528f2.zip
ARM: 7042/3: mach-ep93xx: break out GPIO driver specifics
The <mach/gpio.h> file is included from upper directories and deal with generic GPIO and gpiolib stuff. Break out the platform and driver specific defines and functions into its own header file. Cc: Ryan Mallon <rmallon@gmail.com> Acked-by: Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-ep93xx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
index fbd6a606677..7aafbb43733 100644
--- a/drivers/gpio/gpio-ep93xx.c
+++ b/drivers/gpio/gpio-ep93xx.c
@@ -23,6 +23,9 @@
#include <linux/basic_mmio_gpio.h>
#include <mach/hardware.h>
+#include <mach/gpio-ep93xx.h>
+
+#define irq_to_gpio(irq) ((irq) - gpio_to_irq(0))
struct ep93xx_gpio {
void __iomem *mmio_base;