diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-04-17 07:25:38 +0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-05-20 15:21:47 +0400 |
commit | f23c144d4265b9251a4146e057af668bcd7667cb (patch) | |
tree | f92ed6eec91ab1839cfd3aea3632885c7ee2e9e5 /arch/m68k/platform/coldfire | |
parent | 943c0cd0adf66ebfd7695715e0178e331fc72f43 (diff) | |
download | linux-f23c144d4265b9251a4146e057af668bcd7667cb.tar.xz |
m68knommu: make duplicated ColdFire GPIO init code common for all
The code that adds each ColdFire platforms GPIO signals is duplicated in
each platforms specific code. Remove it from each platforms code and put
a single version in the existing ColdFire gpio subsystem init code.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Steven King <sfking@fdwdc.com>
Diffstat (limited to 'arch/m68k/platform/coldfire')
-rw-r--r-- | arch/m68k/platform/coldfire/gpio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index 292a1a5a2d7c..4c8c42450a4e 100644 --- a/arch/m68k/platform/coldfire/gpio.c +++ b/arch/m68k/platform/coldfire/gpio.c @@ -122,6 +122,10 @@ struct bus_type mcf_gpio_subsys = { static int __init mcf_gpio_sysinit(void) { + unsigned int i = 0; + + while (i < mcf_gpio_chips_size) + gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]); return subsys_system_register(&mcf_gpio_subsys, NULL); } |