pinctrl: ocelot: Always register GPIO driver
authorLars Povlsen <lars.povlsen@microchip.com>
Wed, 13 May 2020 12:55:19 +0000 (14:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:47 +0000 (17:48 +0200)
commit10ca974a2b034d3e2544659ebe503c42e6a120cf
treedfa3565d081d8bf21658ee007f35daf3a262920a
parent017ffbe45e443879713f00e4c470a6286a482e0f
pinctrl: ocelot: Always register GPIO driver

[ Upstream commit 550713e33f4338c8596776828a936fd1e3bf35de ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-ocelot.c