From: Sonic Zhang Date: Wed, 21 Nov 2007 09:04:41 +0000 (+0800) Subject: Blackfin arch: fix bug when enable uart1 with uart0 disabled => no initial console X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=233b28a91caf7cff326e604c437a364eaf794106;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Blackfin arch: fix bug when enable uart1 with uart0 disabled => no initial console Signed-off-by: Michael Hennerich Signed-off-by: Sonic Zhang Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index a2c347c85e20..07b0dc273d2f 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c @@ -578,15 +578,20 @@ static struct platform_device bfin_fb_adv7393_device = { #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) static struct resource bfin_uart_resources[] = { +#ifdef CONFIG_SERIAL_BFIN_UART0 { .start = 0xFFC00400, .end = 0xFFC004FF, .flags = IORESOURCE_MEM, - }, { + }, +#endif +#ifdef CONFIG_SERIAL_BFIN_UART1 + { .start = 0xFFC02000, .end = 0xFFC020FF, .flags = IORESOURCE_MEM, }, +#endif }; static struct platform_device bfin_uart_device = {