via-velocity : fix no link detection on boot
on boot, link is always up. Signed-off-by: Seguier Regis <rseguier@e-teleport.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6905b1f1a0
commit
d3b238a03e
|
@ -989,8 +989,10 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
|
|||
if (ret < 0)
|
||||
goto err_iounmap;
|
||||
|
||||
if (velocity_get_link(dev))
|
||||
if (!velocity_get_link(dev)) {
|
||||
netif_carrier_off(dev);
|
||||
vptr->mii_status |= VELOCITY_LINK_FAIL;
|
||||
}
|
||||
|
||||
velocity_print_info(vptr);
|
||||
pci_set_drvdata(pdev, dev);
|
||||
|
|
Loading…
Reference in New Issue