Skip to content
Snippets Groups Projects
Commit 6419ffd2 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

adm5120: avoid warning caused by wrong AMBA irq values


The amba core throws a warning if -1 is used as an
irq value since upstream commit:

  2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3
  ARM: amba: make use of -1 IRQs warn

  Make the core warn about the use of -1 (NO_IRQ)

Cange the value of the unused IRQs to zero for the
UART devices to get rid of the warning.

Based on #12729.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35747
parent 92062542
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ struct amba_device adm5120_uart0_device = {
.end = ADM5120_UART0_BASE + ADM5120_UART_SIZE - 1,
.flags = IORESOURCE_MEM,
},
.irq = { ADM5120_IRQ_UART0, -1 },
.irq = { ADM5120_IRQ_UART0, 0 },
.periphid = 0x0041010,
};
......@@ -218,7 +218,7 @@ struct amba_device adm5120_uart1_device = {
.end = ADM5120_UART1_BASE + ADM5120_UART_SIZE - 1,
.flags = IORESOURCE_MEM,
},
.irq = { ADM5120_IRQ_UART1, -1 },
.irq = { ADM5120_IRQ_UART1, 0 },
.periphid = 0x0041010,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment