summaryrefslogtreecommitdiff
path: root/arch/m68k/platform/coldfire/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/platform/coldfire/gpio.c')
-rw-r--r--arch/m68k/platform/coldfire/gpio.c4
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);
}