sunsab: Do not set sunsab_reg.cons right before registering minors.
commit313775a1ae8d7d951810e173ce9295f07e5f2f78
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2009 21:56:39 +0000 (24 13:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 21:43:59 +0000 (18 13:43 -0800)
tree5add170226352d218e1fba1f5af5d0f6df918fdf
parentbcb7797d596b725c2b6b11f24b9254385297261f
sunsab: Do not set sunsab_reg.cons right before registering minors.

[ Upstream commit 4e68e188411ea98e40309700cf0c89ad4469ac1d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/sunsab.c