summaryrefslogtreecommitdiffstats
path: root/arch/mips/rb532/serial.c
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-01-15 15:38:38 +0100
committerRalf Baechle <ralf@linux-mips.org>2009-01-30 22:33:00 +0100
commit1452fc7d178c37c6463c95c5cc6858c7b7f478c8 (patch)
tree11087b5300be36da1b1fa851c740a4d85c8da20f /arch/mips/rb532/serial.c
parentMIPS: RB532: remove useless CF GPIO initialisation (diff)
downloadlinux-1452fc7d178c37c6463c95c5cc6858c7b7f478c8.tar.xz
linux-1452fc7d178c37c6463c95c5cc6858c7b7f478c8.zip
MIPS: RB532: Detect uart type, add platform device
Auto-detection works just fine, so use it instead of specifying the type manually. Also define a platform device for the uart, as suggested by David Daney. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
-rw-r--r--arch/mips/rb532/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/rb532/serial.c b/arch/mips/rb532/serial.c
index 3e0d7ec3a579..00ed19f0bdb5 100644
--- a/arch/mips/rb532/serial.c
+++ b/arch/mips/rb532/serial.c
@@ -36,7 +36,7 @@
extern unsigned int idt_cpu_freq;
static struct uart_port rb532_uart = {
- .type = PORT_16550A,
+ .flags = UPF_BOOT_AUTOCONF,
.line = 0,
.irq = UART0_IRQ,
.iotype = UPIO_MEM,