diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-01-17 14:10:25 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-01-25 21:37:48 -0500 |
commit | 0f55239348aa85021d8bf8b63d84a796fcc142a4 (patch) | |
tree | 264dab6d2ffc1d05a634a384be6cd91379d32637 /include/linux | |
parent | 7f1e76370b717be264f0af54719182a96fb8f36d (diff) |
sh: intc: remove dependency on NR_IRQS
SH intc has a compile time dependency on NR_IRQS. Make this dependency a
local define so that shmobile (and ARM in general) can have run-time
NR_IRQS setting.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sh_intc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h index e1a2ac5c931b..6aed0805927f 100644 --- a/include/linux/sh_intc.h +++ b/include/linux/sh_intc.h | |||
@@ -3,6 +3,12 @@ | |||
3 | 3 | ||
4 | #include <linux/ioport.h> | 4 | #include <linux/ioport.h> |
5 | 5 | ||
6 | #ifdef CONFIG_SUPERH | ||
7 | #define INTC_NR_IRQS 512 | ||
8 | #else | ||
9 | #define INTC_NR_IRQS 1024 | ||
10 | #endif | ||
11 | |||
6 | /* | 12 | /* |
7 | * Convert back and forth between INTEVT and IRQ values. | 13 | * Convert back and forth between INTEVT and IRQ values. |
8 | */ | 14 | */ |