diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/serial.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/serial.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/include/mach/serial.h b/arch/arm/mach-davinci/include/mach/serial.h index a584697a9e70..f6c4f34909a2 100644 --- a/arch/arm/mach-davinci/include/mach/serial.h +++ b/arch/arm/mach-davinci/include/mach/serial.h | |||
@@ -13,7 +13,6 @@ | |||
13 | 13 | ||
14 | #include <mach/hardware.h> | 14 | #include <mach/hardware.h> |
15 | 15 | ||
16 | #define DAVINCI_MAX_NR_UARTS 3 | ||
17 | #define DAVINCI_UART0_BASE (IO_PHYS + 0x20000) | 16 | #define DAVINCI_UART0_BASE (IO_PHYS + 0x20000) |
18 | #define DAVINCI_UART1_BASE (IO_PHYS + 0x20400) | 17 | #define DAVINCI_UART1_BASE (IO_PHYS + 0x20400) |
19 | #define DAVINCI_UART2_BASE (IO_PHYS + 0x20800) | 18 | #define DAVINCI_UART2_BASE (IO_PHYS + 0x20800) |
diff --git a/arch/arm/mach-davinci/serial.c b/arch/arm/mach-davinci/serial.c index 7ce5ba086575..709e1a90ec2a 100644 --- a/arch/arm/mach-davinci/serial.c +++ b/arch/arm/mach-davinci/serial.c | |||
@@ -77,7 +77,7 @@ int __init davinci_serial_init(struct davinci_uart_config *info) | |||
77 | * Make sure the serial ports are muxed on at this point. | 77 | * Make sure the serial ports are muxed on at this point. |
78 | * You have to mux them off in device drivers later on if not needed. | 78 | * You have to mux them off in device drivers later on if not needed. |
79 | */ | 79 | */ |
80 | for (i = 0; i < DAVINCI_MAX_NR_UARTS; i++, p++) { | 80 | for (i = 0; p->flags; i++, p++) { |
81 | if (!(info->enabled_uarts & (1 << i))) | 81 | if (!(info->enabled_uarts & (1 << i))) |
82 | continue; | 82 | continue; |
83 | 83 | ||