ARM: S5P: Add function to register gpio interrupt bank data
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 15 Mar 2011 12:17:43 +0000 (21:17 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 15 Mar 2011 12:17:43 +0000 (21:17 +0900)
commita43efddc3bf8b143ff9352763cd39d425db14d27
tree250d9987ae00298c9f63735728b8dd6d2b1fe4e4
parent2de0926204b100409bcd51465404ae846c7f48fd
ARM: S5P: Add function to register gpio interrupt bank data

This patch removes all global data from common s5p gpio interrupt
handler code. This enables to reuse this code on EXYNOS4 platform.
Instead of global data (IRQ_GPIOINT interrupt number,
S5P_GPIOINT_GROUP_MAXNR groups count), a s5p_register_gpioint_bank()
function is introduced. It is aimed to be called from gpiolib init.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5pc100/gpiolib.c
arch/arm/mach-s5pv210/gpiolib.c
arch/arm/plat-s5p/irq-gpioint.c
arch/arm/plat-samsung/include/plat/gpio-cfg.h