sky2: set carrier off in probe
authorBrandon Philips <bphilips@suse.de>
Thu, 29 Oct 2009 13:58:07 +0000 (13:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 19:25:16 +0000 (12:25 -0700)
Before bringing up a sky2 interface up ethtool reports
"Link detected: yes". Do as ixgbe does and netif_carrier_off() on
probe().

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c

index 2ab5c39f33cabfa4c40a3e2a5fe71e67d7b5778c..6a10d7ba58778245ca14ad4ba7b18c20aa7be79e 100644 (file)
@@ -4538,6 +4538,8 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
                goto err_out_free_netdev;
        }
 
+       netif_carrier_off(dev);
+
        netif_napi_add(dev, &hw->napi, sky2_poll, NAPI_WEIGHT);
 
        err = request_irq(pdev->irq, sky2_intr,