gpio-rcar: R-Car GPIO IRQ share interrupt
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 18 Apr 2013 06:40:57 +0000 (23:40 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Jun 2013 11:28:36 +0000 (20:28 +0900)
R-Car H1 or Gen2 GPIO interrupts are assigned per each GPIO domain,
but, Gen1 E1/M1 GPIO interrupts are shared for all GPIO domain.
gpio-rcar driver needs IRQF_SHARED flags for these.
This patch was tested on Bock-W board

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpio/gpio-rcar.c

index b4ca450947b8f4b8f041c35ddfb9e21dde797487..0f3d6473bf89dae9d11b64e2bfc2120e96dd9f65 100644 (file)
@@ -333,7 +333,7 @@ static int gpio_rcar_probe(struct platform_device *pdev)
        }
 
        if (devm_request_irq(&pdev->dev, irq->start,
-                            gpio_rcar_irq_handler, 0, name, p)) {
+                            gpio_rcar_irq_handler, IRQF_SHARED, name, p)) {
                dev_err(&pdev->dev, "failed to request IRQ\n");
                ret = -ENOENT;
                goto err1;