powerpc/sysdev: change CPM GPIO to platform_device
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 13 Dec 2017 11:26:23 +0000 (12:26 +0100)
committerScott Wood <oss@buserror.net>
Sun, 21 Jan 2018 05:29:02 +0000 (23:29 -0600)
commitc095ff93f901c1620b28dce4d813dd548bc5236b
tree55eae5b85d07619c35e7f7053568559d9f1a1545
parentd038386a0cecaf5283745f951bc35c49bd78da22
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>
arch/powerpc/include/asm/cpm.h
arch/powerpc/include/asm/cpm1.h
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/cpm1.c
arch/powerpc/sysdev/cpm2.c
arch/powerpc/sysdev/cpm_common.c
arch/powerpc/sysdev/cpm_gpio.c [new file with mode: 0644]