aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-08-30 10:30:39 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-10-01 12:06:03 -0400
commitde6cc84f723ab4373d1f83e64771392d6f784c81 (patch)
tree55618566a45d6c559f24df9d8d387334d93ea13c /drivers
parentbf603625660b1742004bf86432ce3c210d14d4fd (diff)
[SERIAL] Remove m32r_sio dependency on asm/serial.h
m32r_sio re-uses a custom defined BASE_BAUD from asm/serial.h, and replaces SERIAL_PORT_DFNS with its own driver private copy. Since asm/serial.h is supposed to define 8250-based ports using these symbols, this isn't a sane idea. Hence, eliminate asm/serial.h from m32r_sio.c. Acked-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/m32r_sio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/serial/m32r_sio.c b/drivers/serial/m32r_sio.c
index e7fe4bb46eca..28c9ce6f0bdc 100644
--- a/drivers/serial/m32r_sio.c
+++ b/drivers/serial/m32r_sio.c
@@ -76,7 +76,7 @@
76 */ 76 */
77#define is_real_interrupt(irq) ((irq) != 0) 77#define is_real_interrupt(irq) ((irq) != 0)
78 78
79#include <asm/serial.h> 79#define BASE_BAUD 115200
80 80
81/* Standard COM flags */ 81/* Standard COM flags */
82#define STD_COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST) 82#define STD_COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST)
@@ -86,7 +86,6 @@
86 * standard enumeration mechanism. Platforms that can find all 86 * standard enumeration mechanism. Platforms that can find all
87 * serial ports via mechanisms like ACPI or PCI need not supply it. 87 * serial ports via mechanisms like ACPI or PCI need not supply it.
88 */ 88 */
89#undef SERIAL_PORT_DFNS
90#if defined(CONFIG_PLAT_USRV) 89#if defined(CONFIG_PLAT_USRV)
91 90
92#define SERIAL_PORT_DFNS \ 91#define SERIAL_PORT_DFNS \
@@ -109,7 +108,7 @@
109#endif /* !CONFIG_PLAT_USRV */ 108#endif /* !CONFIG_PLAT_USRV */
110 109
111static struct old_serial_port old_serial_port[] = { 110static struct old_serial_port old_serial_port[] = {
112 SERIAL_PORT_DFNS /* defined in asm/serial.h */ 111 SERIAL_PORT_DFNS
113}; 112};
114 113
115#define UART_NR ARRAY_SIZE(old_serial_port) 114#define UART_NR ARRAY_SIZE(old_serial_port)