aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/cpm2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/cpm2.c')
-rw-r--r--arch/powerpc/sysdev/cpm2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/cpm2.c b/arch/powerpc/sysdev/cpm2.c
index 5a6c5dfc53ef..9311778a5082 100644
--- a/arch/powerpc/sysdev/cpm2.c
+++ b/arch/powerpc/sysdev/cpm2.c
@@ -377,3 +377,14 @@ void cpm2_set_pin(int port, int pin, int flags)
377 else 377 else
378 clrbits32(&iop[port].odr, pin); 378 clrbits32(&iop[port].odr, pin);
379} 379}
380
381static int cpm_init_par_io(void)
382{
383 struct device_node *np;
384
385 for_each_compatible_node(np, NULL, "fsl,cpm2-pario-bank")
386 cpm2_gpiochip_add32(np);
387 return 0;
388}
389arch_initcall(cpm_init_par_io);
390