gpio: ath79: Pass irqchip when adding gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jun 2019 11:57:33 +0000 (13:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Jun 2019 16:41:33 +0000 (17:41 +0100)
commitaee5cec5bb27d8d3c2c13f371d156e5879309d0e
treee760e1a28459c32804b9824bc6bcb84eeb37d255
parenta4de43049a1d0e2ed2a1d95e18e74b82cd9ca058
gpio: ath79: Pass irqchip when adding gpiochip

We need to convert all old gpio irqchips to pass the irqchip
setup along when adding the gpio_chip.

For chained irqchips this is a pretty straight-forward
conversion.

Take this opportunity to add a local dev pointer and
use devm_gpiochip_add() so we can get rid of the remove()
callback altogether.

Cc: linux-mips@linux-mips.org
Acked-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ath79.c