]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: davinci: dm646x: define gpio interrupts as separate resources
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Nov 2018 09:35:14 +0000 (10:35 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 26 Nov 2018 11:15:09 +0000 (16:45 +0530)
Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous
IRQ numbering") the davinci GPIO driver fails to probe if we boot
in legacy mode from any of the board files. Since the driver now
expects every interrupt to be defined as a separate resource, split
the definition of IRQ resources instead of having a single continuous
interrupt range.

Fixes: eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/dm646x.c

index 6bd2ed069d0d7491a28b5af9665838e030e41ed3..d9b93e2806d222e7959a9d2b626e192205e60c2d 100644 (file)
@@ -442,6 +442,16 @@ static struct resource dm646x_gpio_resources[] = {
        },
        {       /* interrupt */
                .start  = IRQ_DM646X_GPIOBNK0,
+               .end    = IRQ_DM646X_GPIOBNK0,
+               .flags  = IORESOURCE_IRQ,
+       },
+       {
+               .start  = IRQ_DM646X_GPIOBNK1,
+               .end    = IRQ_DM646X_GPIOBNK1,
+               .flags  = IORESOURCE_IRQ,
+       },
+       {
+               .start  = IRQ_DM646X_GPIOBNK2,
                .end    = IRQ_DM646X_GPIOBNK2,
                .flags  = IORESOURCE_IRQ,
        },