[ARM] 3973/1: AT91: Serial driver compile fix

1. The CPU identification has moved from <system.h> to <cpu.h>.

2. AT91RM9200_BASE_US0 is only defined if we are compiling in support
for the AT91RM9200. Therefore we need to replace the CONFIG_ARM ifdef
with CONFIG_ARCH_AT91RM9200

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Andrew Victor and committed by Russell King c2f5ccfb c019d49b

+3 -3
+3 -3
drivers/serial/atmel_serial.c
··· 1 /* 2 - * linux/drivers/char/at91_serial.c 3 * 4 * Driver for Atmel AT91 / AT32 Serial ports 5 * Copyright (C) 2003 Rick Bronson ··· 40 #include <asm/arch/board.h> 41 #include <asm/arch/at91_pdc.h> 42 #ifdef CONFIG_ARM 43 - #include <asm/arch/system.h> 44 #include <asm/arch/gpio.h> 45 #endif 46 ··· 137 unsigned int control = 0; 138 unsigned int mode; 139 140 - #ifdef CONFIG_ARM 141 if (cpu_is_at91rm9200()) { 142 /* 143 * AT91RM9200 Errata #39: RTS0 is not internally connected to PA21.
··· 1 /* 2 + * linux/drivers/char/atmel_serial.c 3 * 4 * Driver for Atmel AT91 / AT32 Serial ports 5 * Copyright (C) 2003 Rick Bronson ··· 40 #include <asm/arch/board.h> 41 #include <asm/arch/at91_pdc.h> 42 #ifdef CONFIG_ARM 43 + #include <asm/arch/cpu.h> 44 #include <asm/arch/gpio.h> 45 #endif 46 ··· 137 unsigned int control = 0; 138 unsigned int mode; 139 140 + #ifdef CONFIG_ARCH_AT91RM9200 141 if (cpu_is_at91rm9200()) { 142 /* 143 * AT91RM9200 Errata #39: RTS0 is not internally connected to PA21.