From: Niklas Söderlund Date: Thu, 8 Dec 2016 17:32:27 +0000 (+0100) Subject: gpio: rcar: set IRQ chip parent_device X-Git-Tag: v4.11-rc1~101^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47bd38a31adcd5b92f5e11919a101a310305dbb1;p=platform%2Fkernel%2Flinux-exynos.git gpio: rcar: set IRQ chip parent_device This enables Runtime PM handling for interrupts. By setting the parent_device in struct irq_chip genirq will call the pm_runtime_get/put APIs when an IRQ is requested/freed. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 2be48f5..3b77c10 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -460,6 +460,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) irq_chip = &p->irq_chip; irq_chip->name = name; + irq_chip->parent_device = dev; irq_chip->irq_mask = gpio_rcar_irq_disable; irq_chip->irq_unmask = gpio_rcar_irq_enable; irq_chip->irq_set_type = gpio_rcar_irq_set_type;