aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/platform/5272/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/platform/5272/gpio.c')
-rw-r--r--arch/m68k/platform/5272/gpio.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/m68k/platform/5272/gpio.c b/arch/m68k/platform/5272/gpio.c
index 91358b830fc9..c029dab7baf3 100644
--- a/arch/m68k/platform/5272/gpio.c
+++ b/arch/m68k/platform/5272/gpio.c
@@ -20,18 +20,10 @@
20#include <asm/mcfsim.h> 20#include <asm/mcfsim.h>
21#include <asm/mcfgpio.h> 21#include <asm/mcfgpio.h>
22 22
23static struct mcf_gpio_chip mcf_gpio_chips[] = { 23struct mcf_gpio_chip mcf_gpio_chips[] = {
24 MCFGPS(PA, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT), 24 MCFGPS(PA, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
25 MCFGPS(PB, 16, 16, MCFSIM_PBDDR, MCFSIM_PBDAT, MCFSIM_PBDAT), 25 MCFGPS(PB, 16, 16, MCFSIM_PBDDR, MCFSIM_PBDAT, MCFSIM_PBDAT),
26 MCFGPS(Pc, 32, 16, MCFSIM_PCDDR, MCFSIM_PCDAT, MCFSIM_PCDAT), 26 MCFGPS(Pc, 32, 16, MCFSIM_PCDDR, MCFSIM_PCDAT, MCFSIM_PCDAT),
27}; 27};
28 28
29static int __init mcf_gpio_init(void) 29unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
30{
31 unsigned i = 0;
32 while (i < ARRAY_SIZE(mcf_gpio_chips))
33 (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]);
34 return 0;
35}
36
37core_initcall(mcf_gpio_init);