diff options
Diffstat (limited to 'arch/m68k/platform/5307/gpio.c')
-rw-r--r-- | arch/m68k/platform/5307/gpio.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/m68k/platform/5307/gpio.c b/arch/m68k/platform/5307/gpio.c index 91d042030657..7bbbea7a8556 100644 --- a/arch/m68k/platform/5307/gpio.c +++ b/arch/m68k/platform/5307/gpio.c | |||
@@ -20,16 +20,8 @@ | |||
20 | #include <asm/mcfsim.h> | 20 | #include <asm/mcfsim.h> |
21 | #include <asm/mcfgpio.h> | 21 | #include <asm/mcfgpio.h> |
22 | 22 | ||
23 | static struct mcf_gpio_chip mcf_gpio_chips[] = { | 23 | struct mcf_gpio_chip mcf_gpio_chips[] = { |
24 | MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT), | 24 | MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT), |
25 | }; | 25 | }; |
26 | 26 | ||
27 | static int __init mcf_gpio_init(void) | 27 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); |
28 | { | ||
29 | unsigned i = 0; | ||
30 | while (i < ARRAY_SIZE(mcf_gpio_chips)) | ||
31 | (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]); | ||
32 | return 0; | ||
33 | } | ||
34 | |||
35 | core_initcall(mcf_gpio_init); | ||