pinctrl: bcm: nsp: use gpiolib infrastructure for interrupts
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 4 Nov 2019 00:18:18 +0000 (13:18 +1300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Nov 2019 15:19:44 +0000 (16:19 +0100)
commit8298d18a49a3e9e2c0eceb88f2ed80e794f2fae2
treed237bdcdf0f395b26a995a4ce5ac3efe1b7b6084
parent10ff58aa3c2e2a093b6ad615a7e3d8bb0dc613e5
pinctrl: bcm: nsp: use gpiolib infrastructure for interrupts

Use more of the gpiolib infrastructure for handling interrupts. The
root interrupt still needs to be handled manually as it is shared with
other peripherals on the SoC.

This will allow multiple instances of this driver to be supported and
will clean up gracefully on failure thanks to the device managed APIs.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20191104001819.2300-2-chris.packham@alliedtelesis.co.nz
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c