mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[netdevice] Call netdev_link_[up|down|err]() only while registered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -682,9 +682,6 @@ static int b44_probe(struct pci_device *pci, const struct pci_device_id *id)
|
||||
|
||||
b44_load_mac_and_phy_addr(bp);
|
||||
|
||||
/* Link management currently not implemented */
|
||||
netdev_link_up(netdev);
|
||||
|
||||
rc = register_netdev(netdev);
|
||||
if (rc != 0) {
|
||||
iounmap(bp->regs);
|
||||
@@ -692,6 +689,9 @@ static int b44_probe(struct pci_device *pci, const struct pci_device_id *id)
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Link management currently not implemented */
|
||||
netdev_link_up(netdev);
|
||||
|
||||
b44_chip_reset(bp, B44_CHIP_RESET_FULL);
|
||||
|
||||
DBG("b44 %s (%04x:%04x) regs=%p MAC=%s\n", id->name, id->vendor,
|
||||
|
||||
Reference in New Issue
Block a user