ux500: modem_irq is only for 5500
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 8 Dec 2010 05:38:00 +0000 (11:08 +0530)
committerLinus Walleij <linus.walleij@stericsson.com>
Mon, 10 Jan 2011 17:34:53 +0000 (18:34 +0100)
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
[Modified to hit the right file]
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
arch/arm/mach-ux500/modem-irq-db5500.c

index 3187f88..e1296a7 100644 (file)
@@ -12,6 +12,8 @@
 #include <linux/io.h>
 #include <linux/slab.h>
 
+#include <mach/id.h>
+
 #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);