Browse Source

sunserial: Don't call add_preferred_console() when console= is specified.

Reported-by: Frans Pop <elendil@planet.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 15 years ago
parent
commit
7c1f6afcf9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/serial/suncore.c

+ 3 - 1
drivers/serial/suncore.c

@@ -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;
 }