]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: ocelot: Always register GPIO driver
authorLars Povlsen <lars.povlsen@microchip.com>
Wed, 13 May 2020 12:55:19 +0000 (14:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 May 2020 07:28:51 +0000 (09:28 +0200)
commitfeb6f6f22f3600de3606e7802b5956e29b9d2c8f
treee5d04872c7cc3eb2e28d58d6565e44e10f28107d
parentb0fdccb2e6eedb75dee86ee36dd575e8643520bd
pinctrl: ocelot: Always register GPIO driver

This fixes the situation where the GPIO controller is not
used as an interrupt controller as well.

Previously, the driver would silently fail to register even the
GPIO's. With this change, the driver will only register as an
interrupt controller if a parent interrupt is provided.

Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Link: https://lore.kernel.org/r/20200513125532.24585-2-lars.povlsen@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c