[2/7] : sunsab: Do not set sunsab_reg.cons right before registering minors.

Submitted by David Miller on Nov. 24, 2009, 10:21 p.m.


Message ID 20091124.142126.58846336.davem@davemloft.net
State Accepted
Delegated to: David Miller
Headers show

Commit Message

David Miller Nov. 24, 2009, 10:21 p.m.
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>
 drivers/serial/sunsab.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c
index d1ad341..8755de8 100644
--- a/drivers/serial/sunsab.c
+++ b/drivers/serial/sunsab.c
@@ -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) {