b44: fix carrier detection on bind
authorPaul Fertser <fercerpav@gmail.com>
Mon, 11 Oct 2010 22:45:35 +0000 (15:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2010 22:45:35 +0000 (15:45 -0700)
commitbcf64aa379fcadd074449cbf0c049da70071b06f
treeefb74355ddeb1fe71c97e77984e66973c25f0797
parentb00916b189d13a615ff05c9242201135992fcda3
b44: fix carrier detection on bind

For carrier detection to work properly when binding the driver with a cable
unplugged, netif_carrier_off() should be called after register_netdev(),
not before.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/b44.c