cxgb4vf: Call netif_carrier_off properly in pci_probe
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 1 Mar 2019 10:37:01 +0000 (16:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 07:21:06 +0000 (23:21 -0800)
commit57d37aea0e2e0a8330ebf4f41150a641a8ccd869
tree806672f83611d79dbd78787a412397d742c953d4
parent0960004bebdb803ec286ddfea703a9ab7bf5ab20
cxgb4vf: Call netif_carrier_off properly in pci_probe

netif_carrier_off() should be called only after register_netdev().

Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c