patch-2.3.49 linux/drivers/net/setup.c

Next file: linux/drivers/net/sunlance.c
Previous file: linux/drivers/net/seeq8005.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/drivers/net/setup.c linux/drivers/net/setup.c
@@ -185,27 +185,6 @@
 #endif /* CONFIG_IPDDP */
 }
 
-
-/*
- *	The loopback device is global so it can be directly referenced
- *	by the network code.
- */
- 
-extern int loopback_init(struct net_device *dev);
-struct net_device loopback_dev = 
-{
-	"lo" __PAD2,		/* Software Loopback interface		*/
-	0x0,			/* recv memory end			*/
-	0x0,			/* recv memory start			*/
-	0x0,			/* memory end				*/
-	0x0,			/* memory start				*/
-	0,			/* base I/O address			*/
-	0,			/* IRQ					*/
-	0, 0, 0,		/* flags				*/
-	NULL,			/* next device				*/
-	loopback_init		/* loopback_init should set up the rest	*/
-};
-
 static void special_device_init(void)
 {
 #ifdef CONFIG_DUMMY
@@ -248,12 +227,20 @@
 		extern int sb1000_probe(struct net_device *dev);
 		static struct net_device sb1000_dev = 
 		{
-			"cm0", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, sb1000_probe 
+			"cm0 __PAD3", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, sb1000_probe 
 		};
 		register_netdev(&sb1000_dev);
 	}
 #endif
-	register_netdev(&loopback_dev);
+#ifdef CONFIG_BONDING
+	{
+		extern int bond_init(struct net_device *dev);
+		static struct net_device bond_dev = {
+			"bond" __PAD4, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, bond_init,
+		};
+		register_netdev(&bond_dev);
+	}
+#endif	
 }
 
 /*

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