Skip to contentSkip to conversation

: sunsab: Do not set sunsab_reg.cons right before

PATCH New David Miller 1 participant 1 message Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/7 : sunsab: Do not set sunsab_reg.cons right before

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().

---
 drivers/serial/sunsab.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/serial/sunsab.c +0 -1
index d1ad341..8755de8 100644
@@ -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);
Signature · 1 line
1.6.5.3