mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
[sis190] Initialise network device before calling register_netdev()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user