]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
sunserial: Don't call add_preferred_console() when console= is specified.
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 06:51:17 +0000 (23:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 06:51:17 +0000 (23:51 -0700)
Reported-by: Frans Pop <elendil@planet.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/suncore.c

index ed7d958b0a01fa96a2f4a746189090cdce45bc6d..544f2e25d0e545f30f959019f4a176bdccb20af8 100644 (file)
@@ -71,7 +71,9 @@ int sunserial_console_match(struct console *con, struct device_node *dp,
 
        con->index = line;
        drv->cons = con;
-       add_preferred_console(con->name, line, NULL);
+
+       if (!console_set_on_cmdline)
+               add_preferred_console(con->name, line, NULL);
 
        return 1;
 }