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)
commit550713e33f4338c8596776828a936fd1e3bf35de
treee5d04872c7cc3eb2e28d58d6565e44e10f28107d
parent5d590738521e25b183172c32aab6ee71b9366dca
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