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

Next file: linux/drivers/net/hamradio/Makefile
Previous file: linux/drivers/net/eth16i.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/fmv18x.c linux/drivers/net/fmv18x.c
@@ -197,10 +197,6 @@
 		return -EAGAIN;
 	}
 
-	/* Allocate a new 'dev' if needed. */
-	if (dev == NULL)
-		dev = init_etherdev(0, sizeof(struct net_local));
-
 	/* Grab the region so that we can find another board if the IRQ request
 	   fails. */
  	request_region(ioaddr, FMV18X_IO_EXTENT, "fmv18x");
@@ -607,15 +603,10 @@
 }
 
 #ifdef MODULE
-static char devicename[9] = { 0, };
-static struct net_device dev_fmv18x = {
-	devicename, /* device name is inserted by linux/drivers/net/net_init.c */
-	0, 0, 0, 0,
-	0, 0,
-	0, 0, 0, NULL, fmv18x_probe };
+static struct net_device dev_fmv18x = { init: fmv18x_probe };
 
 static int io = 0x220;
-static int irq = 0;
+static int irq;
 
 MODULE_PARM(io, "i");
 MODULE_PARM(irq, "i");

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