be2net: Call netif_carier_off() after register_netdev()
authorSomnath Kotur <somnath.kotur@emulex.com>
Mon, 25 Oct 2010 01:11:10 +0000 (01:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2010 19:14:10 +0000 (12:14 -0700)
commit63a76944b674bb758232e4213da0da95ae055012
tree70b0389ed576a06cb193a47d15daa7b66b3bf048
parent18edc84cf15cbe114dcdf7e8612ee52586d0aad7
be2net: Call netif_carier_off() after register_netdev()

Calling netif_carrier_off before register_netdev was causing the network interface
to miss a linkwatch pending event leading to  an inconsistent state if the link
is not up when interface is initialized.This is now invoked after register_netdev.

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c