diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-12-13 12:26:23 +0100 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2018-01-21 06:29:02 +0100 |
commit | c095ff93f901c1620b28dce4d813dd548bc5236b (patch) | |
tree | 55eae5b85d07619c35e7f7053568559d9f1a1545 /arch/powerpc/sysdev/cpm2.c | |
parent | powerpc/fsl_pci: Fix ptr_ret.cocci warnings (diff) | |
download | linux-c095ff93f901c1620b28dce4d813dd548bc5236b.tar.xz linux-c095ff93f901c1620b28dce4d813dd548bc5236b.zip |
powerpc/sysdev: change CPM GPIO to platform_device
Since commit 9427ecbed46cc ("gpio: Rework of_gpiochip_set_names()
to use device property accessors"), gpio chips have to have a
parent, otherwise devprop_gpiochip_set_names() prematurely exists
with message "GPIO chip parent is NULL" and doesn't proceed
'gpio-line-names' DT property.
This patch wraps the CPM GPIO into a platform driver to allow
assignment of the parent device.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc/sysdev/cpm2.c')
-rw-r--r-- | arch/powerpc/sysdev/cpm2.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/sysdev/cpm2.c b/arch/powerpc/sysdev/cpm2.c index f78ff841652c..07718b9a2c99 100644 --- a/arch/powerpc/sysdev/cpm2.c +++ b/arch/powerpc/sysdev/cpm2.c @@ -354,14 +354,3 @@ void cpm2_set_pin(int port, int pin, int flags) else clrbits32(&iop[port].odr, pin); } - -static int cpm_init_par_io(void) -{ - struct device_node *np; - - for_each_compatible_node(np, NULL, "fsl,cpm2-pario-bank") - cpm2_gpiochip_add32(np); - return 0; -} -arch_initcall(cpm_init_par_io); - |