mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
sunsab: Do not set sunsab_reg.cons right before registering minors.
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>
This commit is contained in:
parent
bffbc94a4d
commit
4e68e18841
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue