]> err.no Git - linux-2.6/commitdiff
serial: fix vr41xx_siu interface select
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Tue, 31 Jul 2007 07:38:55 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:41 +0000 (15:39 -0700)
only PORT_VR41XX_SIU can select interface.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/vr41xx_siu.c

index aa382e2ea3973c5c477cacc6d17bf46483bd3461..0b350971fd326383c630c66f175a1a2b02129c0b 100644 (file)
@@ -800,7 +800,8 @@ static int __init siu_console_setup(struct console *con, char *options)
                port->membase = ioremap(port->mapbase, siu_port_size(port));
        }
 
-       vr41xx_select_siu_interface(SIU_INTERFACE_RS232C);
+       if (port->type == PORT_VR41XX_SIU)
+               vr41xx_select_siu_interface(SIU_INTERFACE_RS232C);
 
        if (options != NULL)
                uart_parse_options(options, &baud, &parity, &bits, &flow);