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:
Michael Brown
2007-06-27 14:48:31 +01:00
parent e381714c07
commit f77815f2b1
16 changed files with 112 additions and 256 deletions
+3 -3
View File
@@ -90,13 +90,13 @@ int legacy_probe ( void *hwdev,
nic.node_addr = netdev->ll_addr;
if ( ! probe ( &nic, hwdev ) ) {
free_netdev ( netdev );
netdev_put ( netdev );
return -ENODEV;
}
if ( ( rc = register_netdev ( netdev ) ) != 0 ) {
disable ( &nic, hwdev );
free_netdev ( netdev );
netdev_put ( netdev );
return rc;
}
@@ -116,7 +116,7 @@ void legacy_remove ( void *hwdev,
unregister_netdev ( netdev );
disable ( nic, hwdev );
free_netdev ( netdev );
netdev_put ( netdev );
legacy_registered = 0;
}