ARM: at91: fix build breakage due to legacy board removals
authorOlof Johansson <olof@lixom.net>
Sun, 9 Nov 2014 06:39:51 +0000 (22:39 -0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 10 Nov 2014 09:38:00 +0000 (10:38 +0100)
Fixes the following missing includes:

arch/arm/mach-at91/at91sam9g45.c: In function 'at91sam9g45_init_time':
arch/arm/mach-at91/at91sam9g45.c:39:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
  at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
                       ^
arch/arm/mach-at91/at91sam9g45.c:39:23: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [arch/arm/mach-at91/at91sam9g45.o] Error 1
arch/arm/mach-at91/at91sam9rl.c: In function 'at91sam9rl_init_time':
arch/arm/mach-at91/at91sam9rl.c:51:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
  at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9rl.c

index dd03f652cca4da6d97fd978c9c1f4485e2d4334e..042f7c623c8f1e8303b54fde629f12a601957d71 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <asm/system_misc.h>
+#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/hardware.h>
 
index 6ca7fc5ca812cb9dbabeabacda84176661d479c0..97efb2ef9fb4449a797373dbc4d5c6d1ac81cd24 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <asm/system_misc.h>
+#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/at91_dbgu.h>
 #include <mach/hardware.h>