Skip to content

Commit

Permalink
sunserial: Don't call add_preferred_console() when console= is specif…
Browse files Browse the repository at this point in the history
…ied.

Reported-by: Frans Pop <elendil@planet.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 26, 2010
1 parent c87fe1c commit 7c1f6af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/serial/suncore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c1f6af

Please sign in to comment.