gpio: mt7621: Pass irqchip when adding gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Aug 2019 14:11:16 +0000 (16:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2019 10:05:06 +0000 (12:05 +0200)
commitf4e9bcc05f4e8d543afbfc0ca1fd4435a2204776
tree4dca38ad8d2906d402162679eca7753957508e13
parentb1d64c7139c1ec673bac8be88b27caf02cf73118
gpio: mt7621: 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 more info see
drivers/gpio/TODO.

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

This driver requests the IRQ directly in the driver so it
differs a bit from the others.

Cc: Greg Ungerer <gerg@kernel.org>
Cc: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: René van Dorst <opensource@vdorst.com>
Link: https://lore.kernel.org/r/20190809141116.16403-1-linus.walleij@linaro.org
drivers/gpio/gpio-mt7621.c