]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4466a58f0db4803f612519f21b096848803d3d8b
treee760e1a28459c32804b9824bc6bcb84eeb37d255
parentfe48826b171930628b0cb6affb25ded62e2cbe0e
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