diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-07-04 03:45:16 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-04 07:56:48 -0400 |
commit | 14070ade02cc378bc30dae383532768a94805988 (patch) | |
tree | 3a16ad43bac32ebd0b1cd59b72b7d4c0f144df48 | |
parent | 1fe406186482305bfb77967c59a64367d3fd8088 (diff) |
ARM: at91: fix new build errors
MULTI_IRQ_HANDLER and SPARSE_IRQ are now required everywhere because
mach/irqs.h and mach/entry-macros.S are gone but the symbols are
only selected for AT91SAM9, not for the NOMMU parts.
A few files now need to include linux/io.h directly, which used to
be included through other headers that have changed.
The new at91_aic_irq_priorities variable is only used with CONFIG_OF
enabled and should not be visible otherwise.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91x40.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/irq.c | 3 | ||||
-rw-r--r-- | drivers/rtc/rtc-at91rm9200.c | 1 |
4 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 7d0c40a74d4d..c8050b14e615 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -37,6 +37,8 @@ config SOC_AT91SAM9 | |||
37 | config SOC_AT91RM9200 | 37 | config SOC_AT91RM9200 |
38 | bool "AT91RM9200" | 38 | bool "AT91RM9200" |
39 | select CPU_ARM920T | 39 | select CPU_ARM920T |
40 | select MULTI_IRQ_HANDLER | ||
41 | select SPARSE_IRQ | ||
40 | select GENERIC_CLOCKEVENTS | 42 | select GENERIC_CLOCKEVENTS |
41 | select HAVE_AT91_DBGU0 | 43 | select HAVE_AT91_DBGU0 |
42 | 44 | ||
@@ -142,6 +144,8 @@ config ARCH_AT91SAM9G45 | |||
142 | config ARCH_AT91X40 | 144 | config ARCH_AT91X40 |
143 | bool "AT91x40" | 145 | bool "AT91x40" |
144 | depends on !MMU | 146 | depends on !MMU |
147 | select MULTI_IRQ_HANDLER | ||
148 | select SPARSE_IRQ | ||
145 | select ARCH_USES_GETTIMEOFFSET | 149 | select ARCH_USES_GETTIMEOFFSET |
146 | 150 | ||
147 | endchoice | 151 | endchoice |
diff --git a/arch/arm/mach-at91/at91x40.c b/arch/arm/mach-at91/at91x40.c index 4c0f5fd4d850..46090e642d8e 100644 --- a/arch/arm/mach-at91/at91x40.c +++ b/arch/arm/mach-at91/at91x40.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <linux/io.h> | ||
16 | #include <asm/proc-fns.h> | 17 | #include <asm/proc-fns.h> |
17 | #include <asm/system_misc.h> | 18 | #include <asm/system_misc.h> |
18 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
diff --git a/arch/arm/mach-at91/irq.c b/arch/arm/mach-at91/irq.c index c5eaaa060bd8..1e02c0e49dcc 100644 --- a/arch/arm/mach-at91/irq.c +++ b/arch/arm/mach-at91/irq.c | |||
@@ -49,7 +49,6 @@ static struct irq_domain *at91_aic_domain; | |||
49 | static struct device_node *at91_aic_np; | 49 | static struct device_node *at91_aic_np; |
50 | static unsigned int n_irqs = NR_AIC_IRQS; | 50 | static unsigned int n_irqs = NR_AIC_IRQS; |
51 | static unsigned long at91_aic_caps = 0; | 51 | static unsigned long at91_aic_caps = 0; |
52 | static unsigned int *at91_aic_irq_priorities; | ||
53 | 52 | ||
54 | /* AIC5 introduces a Source Select Register */ | 53 | /* AIC5 introduces a Source Select Register */ |
55 | #define AT91_AIC_CAP_AIC5 (1 << 0) | 54 | #define AT91_AIC_CAP_AIC5 (1 << 0) |
@@ -359,6 +358,8 @@ static void __init __maybe_unused at91_aic5_hw_init(unsigned int spu_vector) | |||
359 | } | 358 | } |
360 | 359 | ||
361 | #if defined(CONFIG_OF) | 360 | #if defined(CONFIG_OF) |
361 | static unsigned int *at91_aic_irq_priorities; | ||
362 | |||
362 | static int at91_aic_irq_map(struct irq_domain *h, unsigned int virq, | 363 | static int at91_aic_irq_map(struct irq_domain *h, unsigned int virq, |
363 | irq_hw_number_t hw) | 364 | irq_hw_number_t hw) |
364 | { | 365 | { |
diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index dc474bc6522d..fca9790c7de7 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
28 | #include <linux/ioctl.h> | 28 | #include <linux/ioctl.h> |
29 | #include <linux/completion.h> | 29 | #include <linux/completion.h> |
30 | #include <linux/io.h> | ||
30 | 31 | ||
31 | #include <asm/uaccess.h> | 32 | #include <asm/uaccess.h> |
32 | 33 | ||