]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Setup parent device and get rid of unnecessary of_node assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Dec 2021 13:18:51 +0000 (15:18 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 17 Dec 2021 16:44:19 +0000 (17:44 +0100)
commit22c750ffcbd2174f4a7d33fb063dfa08e705cb5a
treeb1feda7f4649c4421004b2e05a9bc9609c755101
parent833f9250e9bea4b13c4f56eab663e632592b82a2
gpio: Setup parent device and get rid of unnecessary of_node assignment

Some of the drivers do not set parent device. This may lead to obstacles
during debugging or understanding the device relations from the Linux
point of view. Assign parent device for GPIO chips created by these
drivers.

While at it, let GPIO library to assign of_node from the parent device.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-bcm-kona.c
drivers/gpio/gpio-creg-snps.c
drivers/gpio/gpio-lpc32xx.c
drivers/gpio/gpio-pxa.c