pinctrl: ocelot: Fix interrupt parsing
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Mar 2022 14:44:32 +0000 (15:44 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:52:33 +0000 (01:52 +0100)
commitd1f2c82f3b1f428bdc0933dde52fb93ae796d4ee
tree802a3525cfe9a7dc578eda592c5e4fe5491bf4c3
parentf5141ae4ab7825cc2dd0a5e9c1a4a183c97621a6
pinctrl: ocelot: Fix interrupt parsing

In the blamed commit, it removes the duplicate of_node assignment in the
driver. But the driver uses this before calling into of_gpio_dev_init to
determine if it needs to assign an IRQ chip to the GPIO. The fixes
consists in using the platform_get_irq_optional

Fixes: 8a8d6bbe1d3bc7 ("pinctrl: Get rid of duplicate of_node assignment in the drivers")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220304144432.3397621-3-horatiu.vultur@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c