git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'next/topic-gpio-samsung' into next-samsung-devel
[pandora-kernel.git]
/
arch
/
arm
/
plat-s5p
/
irq-gpioint.c
diff --git
a/arch/arm/plat-s5p/irq-gpioint.c
b/arch/arm/plat-s5p/irq-gpioint.c
index
0455519
..
a566523
100644
(file)
--- 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 samsung_gpio_chip *chip)
{
static int used_gpioint_groups = 0;
int group = chip->group;
{
static int used_gpioint_groups = 0;
int group = chip->group;
- struct s5p_gpioint_bank *bank = NULL;
+ struct s5p_gpioint_bank *b
, *b
ank = NULL;
struct irq_chip_generic *gc;
struct irq_chip_type *ct;
if (used_gpioint_groups >= S5P_GPIOINT_GROUP_COUNT)
return -ENOMEM;
struct irq_chip_generic *gc;
struct irq_chip_type *ct;
if (used_gpioint_groups >= S5P_GPIOINT_GROUP_COUNT)
return -ENOMEM;
- list_for_each_entry(b
ank
, &banks, list) {
- if (group >= b
ank->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;
break;
+ }
}
if (!bank)
return -EINVAL;
}
if (!bank)
return -EINVAL;