diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2018-11-21 10:35:16 +0100 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-11-26 16:45:09 +0530 |
commit | adcf60ce14c8250761af9de907eb6c7d096c26d3 (patch) | |
tree | 84cf5a3d595a796679f3918a0ff042d79e183df5 /arch/arm | |
parent | 27db7baab640ea28d7994eda943fef170e347081 (diff) | |
download | linux-stable-adcf60ce14c8250761af9de907eb6c7d096c26d3.tar.gz linux-stable-adcf60ce14c8250761af9de907eb6c7d096c26d3.tar.bz2 linux-stable-adcf60ce14c8250761af9de907eb6c7d096c26d3.zip |
ARM: davinci: dm644x: define gpio interrupts as separate resources
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 0720da7809a6..de1ec6dc01e9 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -492,6 +492,26 @@ static struct resource dm644_gpio_resources[] = { }, { /* interrupt */ .start = IRQ_GPIOBNK0, + .end = IRQ_GPIOBNK0, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_GPIOBNK1, + .end = IRQ_GPIOBNK1, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_GPIOBNK2, + .end = IRQ_GPIOBNK2, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_GPIOBNK3, + .end = IRQ_GPIOBNK3, + .flags = IORESOURCE_IRQ, + }, + { + .start = IRQ_GPIOBNK4, .end = IRQ_GPIOBNK4, .flags = IORESOURCE_IRQ, }, |