aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-22 16:01:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-22 16:01:17 +0000
commitd1746f14891a3f2a404257d7c3f40d5cf6f9d08e (patch)
treece8f225e21f5bdb75730f1801ba975455abc36dc /target/linux/adm5120
parente249d2a240ade44c6b2b95e4203d66dd04e94f2e (diff)
downloadmaster-187ad058-d1746f14891a3f2a404257d7c3f40d5cf6f9d08e.tar.gz
master-187ad058-d1746f14891a3f2a404257d7c3f40d5cf6f9d08e.tar.bz2
master-187ad058-d1746f14891a3f2a404257d7c3f40d5cf6f9d08e.zip
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: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120')
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/common/platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/common/platform.c b/target/linux/adm5120/files/arch/mips/adm5120/common/platform.c
index 4535a7f397..bdbfbcbae5 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/common/platform.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/common/platform.c
@@ -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,
};