diff options
Diffstat (limited to 'arch/m68k/platform/532x/gpio.c')
-rw-r--r-- | arch/m68k/platform/532x/gpio.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/m68k/platform/532x/gpio.c b/arch/m68k/platform/532x/gpio.c index 9454c65e40e..3e1b71dc704 100644 --- a/arch/m68k/platform/532x/gpio.c +++ b/arch/m68k/platform/532x/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(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), | 24 | MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR), |
25 | MCFGPF(FECH, 8, 8), | 25 | MCFGPF(FECH, 8, 8), |
26 | MCFGPF(FECL, 16, 8), | 26 | MCFGPF(FECL, 16, 8), |
@@ -40,12 +40,4 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { | |||
40 | MCFGPF(LCDCTLL, 128, 8), | 40 | MCFGPF(LCDCTLL, 128, 8), |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static int __init mcf_gpio_init(void) | 43 | unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips); |
44 | { | ||
45 | unsigned i = 0; | ||
46 | while (i < ARRAY_SIZE(mcf_gpio_chips)) | ||
47 | (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]); | ||
48 | return 0; | ||
49 | } | ||
50 | |||
51 | core_initcall(mcf_gpio_init); | ||