diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-01-03 23:50:40 +0100 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-01-26 03:37:48 +0100 |
commit | 8661fb92045c5710754d450ebb82461fcfa08b65 (patch) | |
tree | b687f8aa0b3a598a16b66433ece34122ce87a6b4 /arch/arm/mach-mmp/jasper.c | |
parent | sh: intc: remove dependency on NR_IRQS (diff) | |
download | linux-8661fb92045c5710754d450ebb82461fcfa08b65.tar.xz linux-8661fb92045c5710754d450ebb82461fcfa08b65.zip |
ARM: mmp: remove NR_IRQS
Remove NR_IRQS and add a per machine .nr_irqs setting. Clean-up namespace
replacing usage of IRQ_BOARD_START with MMP_NR_IRQS.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/mach-mmp/jasper.c')
-rw-r--r-- | arch/arm/mach-mmp/jasper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-mmp/jasper.c b/arch/arm/mach-mmp/jasper.c index 96cf5c8fe47d..ff73249884d0 100644 --- a/arch/arm/mach-mmp/jasper.c +++ b/arch/arm/mach-mmp/jasper.c @@ -19,6 +19,7 @@ #include <linux/mfd/max8925.h> #include <linux/interrupt.h> +#include <mach/irqs.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <mach/addr-map.h> @@ -27,7 +28,7 @@ #include "common.h" -#define JASPER_NR_IRQS (IRQ_BOARD_START + 48) +#define JASPER_NR_IRQS (MMP_NR_IRQS + 48) static unsigned long jasper_pin_config[] __initdata = { /* UART1 */ @@ -135,7 +136,7 @@ static struct max8925_power_pdata jasper_power_data = { static struct max8925_platform_data jasper_max8925_info = { .backlight = &jasper_backlight_data, .power = &jasper_power_data, - .irq_base = IRQ_BOARD_START, + .irq_base = MMP_NR_IRQS, }; static struct i2c_board_info jasper_twsi1_info[] = { |