sunsab: Do not set sunsab_reg.cons right before registering minors.
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2009 21:56:39 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2009 21:56:39 +0000 (13:56 -0800)
commit4e68e188411ea98e40309700cf0c89ad4469ac1d
tree6f74b9f7de8861693788745edbd7a01248d596ad
parentbffbc94a4d2c1769c3826fceddd2dbb75e72c80b
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>
drivers/serial/sunsab.c