From 5ec65521c99178a87f4c859101a92c36f4701fd7 Mon Sep 17 00:00:00 2001 From: Rabin Vincent Date: Wed, 8 Dec 2010 11:08:00 +0530 Subject: [PATCH] ux500: modem_irq is only for 5500 Signed-off-by: Rabin Vincent [Modified to hit the right file] Signed-off-by: Linus Walleij --- arch/arm/mach-ux500/modem-irq-db5500.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-ux500/modem-irq-db5500.c b/arch/arm/mach-ux500/modem-irq-db5500.c index 3187f8871169..e1296a7447c8 100644 --- a/arch/arm/mach-ux500/modem-irq-db5500.c +++ b/arch/arm/mach-ux500/modem-irq-db5500.c @@ -12,6 +12,8 @@ #include #include +#include + #define MODEM_INTCON_BASE_ADDR 0xBFFD3000 #define MODEM_INTCON_SIZE 0xFFF @@ -101,6 +103,9 @@ static int modem_irq_init(void) static struct irq_chip modem_irq_chip; struct modem_irq *mi; + if (!cpu_is_u5500()) + return -ENODEV; + pr_info("modem_irq: Set up IRQ handler for incoming modem IRQ %d\n", IRQ_DB5500_MODEM); -- 2.39.5