mirror of https://github.com/ipxe/ipxe.git
[sis190] Initialise network device before calling register_netdev()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
c04b6ccd75
commit
3950d1d8e6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue