提交 4e68e188 编写于 作者: D David S. Miller

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: NDavid S. Miller <davem@davemloft.net>
上级 bffbc94a
...@@ -1116,7 +1116,6 @@ static int __init sunsab_init(void) ...@@ -1116,7 +1116,6 @@ static int __init sunsab_init(void)
if (!sunsab_ports) if (!sunsab_ports)
return -ENOMEM; return -ENOMEM;
sunsab_reg.cons = SUNSAB_CONSOLE();
err = sunserial_register_minors(&sunsab_reg, num_channels); err = sunserial_register_minors(&sunsab_reg, num_channels);
if (err) { if (err) {
kfree(sunsab_ports); kfree(sunsab_ports);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册