]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: rcar: Add support for DT IRQ flags
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 8 Jul 2014 10:46:46 +0000 (12:46 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Jul 2014 18:55:15 +0000 (20:55 +0200)
The gpio-rcar driver has no IRQ domain OF xlate function and thus
ignores IRQ flags specified in DT. Fix this by using the two-cell xlate
function.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c

index 0c9f803fc1acdb3fe9e6798ce506e1ec21a41680..b6ae89ea88119b2b1d35b522f64e07470d20a8dc 100644 (file)
@@ -284,6 +284,7 @@ static int gpio_rcar_irq_domain_map(struct irq_domain *h, unsigned int irq,
 
 static struct irq_domain_ops gpio_rcar_irq_domain_ops = {
        .map    = gpio_rcar_irq_domain_map,
+       .xlate  = irq_domain_xlate_twocell,
 };
 
 struct gpio_rcar_info {