diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-03-15 08:17:43 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-03-15 08:17:43 -0400 |
commit | a43efddc3bf8b143ff9352763cd39d425db14d27 (patch) | |
tree | 250d9987ae00298c9f63735728b8dd6d2b1fe4e4 /arch/arm/mach-s5pv210/gpiolib.c | |
parent | 2de0926204b100409bcd51465404ae846c7f48fd (diff) |
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>
Diffstat (limited to 'arch/arm/mach-s5pv210/gpiolib.c')
-rw-r--r-- | arch/arm/mach-s5pv210/gpiolib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/gpiolib.c b/arch/arm/mach-s5pv210/gpiolib.c index ab673effd767..1ba20a703e05 100644 --- a/arch/arm/mach-s5pv210/gpiolib.c +++ b/arch/arm/mach-s5pv210/gpiolib.c | |||
@@ -281,6 +281,7 @@ static __init int s5pv210_gpiolib_init(void) | |||
281 | } | 281 | } |
282 | 282 | ||
283 | samsung_gpiolib_add_4bit_chips(s5pv210_gpio_4bit, nr_chips); | 283 | samsung_gpiolib_add_4bit_chips(s5pv210_gpio_4bit, nr_chips); |
284 | s5p_register_gpioint_bank(IRQ_GPIOINT, 0, S5P_GPIOINT_GROUP_MAXNR); | ||
284 | 285 | ||
285 | return 0; | 286 | return 0; |
286 | } | 287 | } |