]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdad880bfdb4323baa6e766c211623d5883c93011
tree55eae5b85d07619c35e7f7053568559d9f1a1545
parenta0f98bfd1c878a9067b72b76016ceb6ce7d8c283
powerpc/sysdev: change CPM GPIO to platform_device

Since commit 85d32132556a5 ("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]