david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[sis190] Initialise network device before calling register_netdev()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2010-09-05 02:20:23 +01:00
parent c04b6ccd75
commit 3950d1d8e6
1 changed files with 1 additions and 1 deletions

View File

@ -1121,6 +1121,7 @@ static int sis190_probe(struct pci_device *pdev,
rc = sis190_init_board(pdev, &dev);
if (rc < 0)
goto out;
netdev_init(dev, &sis190_netdev_ops);
pci_set_drvdata(pdev, dev);
@ -1142,7 +1143,6 @@ static int sis190_probe(struct pci_device *pdev,
sis190_set_speed_auto(dev);
sis190_phy_task(tp);
netdev_init(dev, &sis190_netdev_ops);
netdev_link_down(dev);
out:
return rc;