diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-17 13:22:50 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-17 13:22:50 +0200 |
commit | 8eb41582d2106eccc7717047d1184481f5a1b3a6 (patch) | |
tree | 12257bbe39b5c8ae6918198fde682ed0aacd8e00 /arch/arm/plat-s5p | |
parent | Merge branch 'samsung/board' into next/board (diff) | |
parent | ep93xx: add support Vision EP9307 SoM (diff) | |
download | linux-8eb41582d2106eccc7717047d1184481f5a1b3a6.tar.xz linux-8eb41582d2106eccc7717047d1184481f5a1b3a6.zip |
Merge branch 'ep93xx/board' into next/board
Diffstat (limited to 'arch/arm/plat-s5p')
-rw-r--r-- | arch/arm/plat-s5p/irq-gpioint.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/plat-s5p/irq-gpioint.c b/arch/arm/plat-s5p/irq-gpioint.c index f71078ef6bb5..f88216d23991 100644 --- a/arch/arm/plat-s5p/irq-gpioint.c +++ b/arch/arm/plat-s5p/irq-gpioint.c @@ -114,17 +114,18 @@ static __init int s5p_gpioint_add(struct s3c_gpio_chip *chip) { static int used_gpioint_groups = 0; int group = chip->group; - struct s5p_gpioint_bank *bank = NULL; + struct s5p_gpioint_bank *b, *bank = NULL; struct irq_chip_generic *gc; struct irq_chip_type *ct; if (used_gpioint_groups >= S5P_GPIOINT_GROUP_COUNT) return -ENOMEM; - list_for_each_entry(bank, &banks, list) { - if (group >= bank->start && - group < bank->start + bank->nr_groups) + list_for_each_entry(b, &banks, list) { + if (group >= b->start && group < b->start + b->nr_groups) { + bank = b; break; + } } if (!bank) return -EINVAL; |