b44: fix carrier detection on bind
commit073676f1efde423a75fbfcb3ff4e0cbfaddb7bdb
authorPaul Fertser <fercerpav@gmail.com>
Mon, 11 Oct 2010 22:45:35 +0000 (11 15:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:41 +0000 (28 21:51 -0700)
tree898a18f37aacdff2eb1d22b971cd7ef2258257b3
parent7837447f8b4372ccd19e3b28afff4c901edd3ae1
b44: fix carrier detection on bind

commit bcf64aa379fcadd074449cbf0c049da70071b06f upstream.

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