Skip to content

Commit

Permalink
sunsab: Do not set sunsab_reg.cons right before registering minors.
Browse files Browse the repository at this point in the history
Other Sun serial drivers do not do this, and if we keep it this way
it ends up registering all serial devices as consoles rather than
just the one which we explicitly register via sunserial_console_match()
which uses add_preferred_console().

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 24, 2009
1 parent bffbc94 commit 4e68e18
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/serial/sunsab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,6 @@ static int __init sunsab_init(void)
if (!sunsab_ports)
return -ENOMEM;

sunsab_reg.cons = SUNSAB_CONSOLE();
err = sunserial_register_minors(&sunsab_reg, num_channels);
if (err) {
kfree(sunsab_ports);
Expand Down

0 comments on commit 4e68e18

Please sign in to comment.