diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 14:50:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 14:50:38 -0800 |
commit | e773202e227c8ebbf369b9b924e15cca4d93824b (patch) | |
tree | 623a15fe0593e7ff2e79f0a5918fb4b3e739e2ee /arch/arm/mach-ux500/modem-irq-db5500.c | |
parent | abf8792d0e1b203e303ed1c02437e0e10a39dcda (diff) | |
parent | d2a40972ec70bd2060d3c46050a101a9678d2991 (diff) |
Merge branch 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson
* 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
ux500: allow 5500 and 8500 to be built together
ux500: modem_irq is only for 5500
ux500: dynamic SOC detection
ux500: rename MOP board Kconfig
ux500: remove build-time changing macros
Diffstat (limited to 'arch/arm/mach-ux500/modem-irq-db5500.c')
-rw-r--r-- | arch/arm/mach-ux500/modem-irq-db5500.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/modem-irq-db5500.c b/arch/arm/mach-ux500/modem-irq-db5500.c index 3187f887116..e1296a7447c 100644 --- a/arch/arm/mach-ux500/modem-irq-db5500.c +++ b/arch/arm/mach-ux500/modem-irq-db5500.c @@ -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); |