aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-11-24 16:56:39 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 16:56:39 -0500
commit4e68e188411ea98e40309700cf0c89ad4469ac1d (patch)
tree6f74b9f7de8861693788745edbd7a01248d596ad /drivers
parentbffbc94a4d2c1769c3826fceddd2dbb75e72c80b (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/sunsab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c
index d1ad34128635..8755de8adbca 100644
--- a/drivers/serial/sunsab.c
+++ b/drivers/serial/sunsab.c
@@ -1116,7 +1116,6 @@ static int __init sunsab_init(void)
1116 if (!sunsab_ports) 1116 if (!sunsab_ports)
1117 return -ENOMEM; 1117 return -ENOMEM;
1118 1118
1119 sunsab_reg.cons = SUNSAB_CONSOLE();
1120 err = sunserial_register_minors(&sunsab_reg, num_channels); 1119 err = sunserial_register_minors(&sunsab_reg, num_channels);
1121 if (err) { 1120 if (err) {
1122 kfree(sunsab_ports); 1121 kfree(sunsab_ports);