patch-2.4.0-test10 linux/drivers/net/apne.c

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

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/apne.c linux/drivers/net/apne.c
@@ -178,12 +178,6 @@
                 8,   9+GAYLE_ODD, 0xa, 0xb+GAYLE_ODD,
               0xc, 0xd+GAYLE_ODD, 0xe, 0xf+GAYLE_ODD };
 
-    /* We should have a "dev" from Space.c or the static module table. */
-    if (dev == NULL) {
-	printk(KERN_ERR "apne.c: Passed a NULL device.\n");
-	dev = init_etherdev(0, 0);
-    }
-
     if (ei_debug  &&  version_printed++ == 0)
 	printk(version);
 
@@ -556,15 +550,7 @@
 }
 
 #ifdef MODULE
-static char devicename[9] = {0, };
-
-static struct net_device apne_dev =
-{
-	devicename,
-	0, 0, 0, 0,
-	0, 0,
-	0, 0, 0, NULL, apne_probe,
-};
+static struct net_device apne_dev = { init: apne_probe };
 
 int init_module(void)
 {

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