diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-11-24 15:27:54 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-25 17:12:27 +0300 |
commit | 35ca3f61617db77364e40c1977952c5ee0a776cb (patch) | |
tree | bb448a70e161f55836c6a1bb8051e89453d9321d /drivers/gpio/gpio-adnp.c | |
parent | d245b3f9bd36f02fd641cba9931d8b4c77126e74 (diff) | |
download | linux-35ca3f61617db77364e40c1977952c5ee0a776cb.tar.xz |
gpio: set explicit nesting on drivers
The ADNP, CrystalCove and WhiskeyCove are all nested GPIO
irqchips, but were avoiding to connect the parent IRQ to
the gpiochip. This works, but is kind of sloppy as the
child IRQs are not marked as having the parent IRQ as
parent.
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Ajay Thomas <ajay.thomas.david.rajamanickam@intel.com>
Cc: Bin Gao <bin.gao@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-adnp.c')
-rw-r--r-- | drivers/gpio/gpio-adnp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-adnp.c b/drivers/gpio/gpio-adnp.c index 7a5c0a93e1ff..89863ea25de1 100644 --- a/drivers/gpio/gpio-adnp.c +++ b/drivers/gpio/gpio-adnp.c @@ -479,6 +479,8 @@ static int adnp_irq_setup(struct adnp *adnp) return err; } + gpiochip_set_nested_irqchip(chip, &adnp_irq_chip, adnp->client->irq); + return 0; } |