patch-2.2.7 linux/drivers/net/net_init.c

Next file: linux/drivers/net/pcnet32.c
Previous file: linux/drivers/net/irda/w83977af_ir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/drivers/net/net_init.c linux/drivers/net/net_init.c
@@ -252,6 +252,22 @@
 	return dev;
 }
 
+
+void unregister_hipdev(struct device *dev)
+{
+	int i;
+	rtnl_lock();
+	unregister_netdevice(dev);
+	for (i = 0; i < MAX_HIP_CARDS; ++i) {
+		if (hipdev_index[i] == dev) {
+			hipdev_index[i] = NULL;
+			break;
+		}
+	}
+	rtnl_unlock();
+}
+
+
 static int hippi_neigh_setup_dev(struct device *dev, struct neigh_parms *p)
 {
 	/* Never send broadcast/multicast ARP messages */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)