ARM: 7083/1: rewrite U300 GPIO to use gpiolib
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Sep 2011 08:04:51 +0000 (09:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Sep 2011 09:03:56 +0000 (10:03 +0100)
commitcc890cd78acd7ab03442907d354b6af34e973cb3
tree67cf73ea730969ffc26c3a5c55de8d96bb8b6299
parent526a0dc771a5cac3224e26abd1f018976b967516
ARM: 7083/1: rewrite U300 GPIO to use gpiolib

This rewrites the U300 GPIO so as to use gpiolib and
struct gpio_chip instead of just generic GPIO, hiding
all the platform specifics and passing in GPIO chip
variant as platform data at runtime instead of the
compiletime kludges.

As a result <mach/gpio.h> is now empty for U300 and
using just defaults.

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Debian kernel maintainers <debian-kernel@lists.debian.org>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mach-u300/Kconfig
arch/arm/mach-u300/core.c
arch/arm/mach-u300/include/mach/gpio-u300.h
arch/arm/mach-u300/include/mach/gpio.h
arch/arm/mach-u300/include/mach/irqs.h
drivers/gpio/Kconfig
drivers/gpio/gpio-u300.c