diff options
Diffstat (limited to 'arch/m68k/platform/528x/gpio.c')
-rw-r--r-- | arch/m68k/platform/528x/gpio.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/m68k/platform/528x/gpio.c b/arch/m68k/platform/528x/gpio.c index 81b161c8667f..79459acd8d36 100644 --- a/arch/m68k/platform/528x/gpio.c +++ b/arch/m68k/platform/528x/gpio.c | |||
@@ -20,7 +20,7 @@ | |||
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(NQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), | 24 | MCFGPS(NQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), |
25 | MCFGPS(TA, 8, 4, MCFGPTA_GPTDDR, MCFGPTA_GPTPORT, MCFGPTB_GPTPORT), | 25 | MCFGPS(TA, 8, 4, MCFGPTA_GPTDDR, MCFGPTA_GPTPORT, MCFGPTB_GPTPORT), |
26 | MCFGPS(TB, 16, 4, MCFGPTB_GPTDDR, MCFGPTB_GPTPORT, MCFGPTB_GPTPORT), | 26 | MCFGPS(TB, 16, 4, MCFGPTB_GPTDDR, MCFGPTB_GPTPORT, MCFGPTB_GPTPORT), |
@@ -46,12 +46,4 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { | |||
46 | MCFGPF(UA, 176, 4), | 46 | MCFGPF(UA, 176, 4), |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static int __init mcf_gpio_init(void) | 49 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); |
50 | { | ||
51 | unsigned i = 0; | ||
52 | while (i < ARRAY_SIZE(mcf_gpio_chips)) | ||
53 | (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]); | ||
54 | return 0; | ||
55 | } | ||
56 | |||
57 | core_initcall(mcf_gpio_init); | ||