mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
Kill off hotplug.h and just make net devices normal reference-counted
structures. DHCP still broken and #if 0'd out.
This commit is contained in:
@@ -675,7 +675,7 @@ int undinet_probe ( struct undi_device *undi ) {
|
||||
undinet_call ( undinic, PXENV_STOP_UNDI, &stop_undi,
|
||||
sizeof ( stop_undi ) );
|
||||
err_start_undi:
|
||||
free_netdev ( netdev );
|
||||
netdev_put ( netdev );
|
||||
undi_set_drvdata ( undi, NULL );
|
||||
return rc;
|
||||
}
|
||||
@@ -710,7 +710,7 @@ void undinet_remove ( struct undi_device *undi ) {
|
||||
undi->flags &= ~UNDI_FL_STARTED;
|
||||
|
||||
/* Free network device */
|
||||
free_netdev ( netdev );
|
||||
netdev_put ( netdev );
|
||||
|
||||
DBGC ( undinic, "UNDINIC %p removed\n", undinic );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user