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)
commit45a541a610af8156ee623b5906515796405ae9f5
treeb1feda7f4649c4421004b2e05a9bc9609c755101
parent448cf90513d954ba5a61ce392809d6936902a9e6
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