mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
ARM: davinci: dm365: define gpio interrupts as separate resources
Since commiteb3744a2dd
("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:eb3744a2dd
("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>
This commit is contained in:
parent
58a0afbf4c
commit
193c04374e
1 changed files with 35 additions and 0 deletions
|
@ -267,6 +267,41 @@ static struct resource dm365_gpio_resources[] = {
|
||||||
},
|
},
|
||||||
{ /* interrupt */
|
{ /* interrupt */
|
||||||
.start = IRQ_DM365_GPIO0,
|
.start = IRQ_DM365_GPIO0,
|
||||||
|
.end = IRQ_DM365_GPIO0,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO1,
|
||||||
|
.end = IRQ_DM365_GPIO1,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO2,
|
||||||
|
.end = IRQ_DM365_GPIO2,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO3,
|
||||||
|
.end = IRQ_DM365_GPIO3,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO4,
|
||||||
|
.end = IRQ_DM365_GPIO4,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO5,
|
||||||
|
.end = IRQ_DM365_GPIO5,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO6,
|
||||||
|
.end = IRQ_DM365_GPIO6,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_GPIO7,
|
||||||
.end = IRQ_DM365_GPIO7,
|
.end = IRQ_DM365_GPIO7,
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue