OMAP: GPIO: prepare for platform driver
authorVaradarajan, Charulatha <charu@ti.com>
Wed, 8 Dec 2010 00:26:55 +0000 (16:26 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 8 Dec 2010 00:26:55 +0000 (16:26 -0800)
commit2fae7fbed072705d91e09ed393b2e580b2d895fc
tree764c006fd853b327b7de5e97a69067d1f3ce95c4
parentc2cdaffe0bb32015e84af8e31f73e620ba271165
OMAP: GPIO: prepare for platform driver

Prepare for implementing GPIO as a platform driver.

Modifies omap_gpio_init() to make use of omap_gpio_chip_init()
and omap_gpio_mod_init(). omap_gpio_mod_init() does the module init
by clearing the status register and initializing the GPIO control register.
omap_gpio_chip_init() initializes the chip request, free, get, set and
other function pointers and sets the gpio irq handler.

This is only to reorganize the code so that the "omap gpio platform driver
implementation patch" looks cleaner and better to review.

Signed-off-by: Charulatha V <charu@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio.c