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

Next file: linux/drivers/net/lne390.c
Previous file: linux/drivers/net/isa-skeleton.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/jazzsonic.c linux/drivers/net/jazzsonic.c
@@ -144,12 +144,9 @@
 	return -ENODEV;
     }
     
-    request_region(base_addr, 0x100, "SONIC");
+    if (!request_region(base_addr, 0x100, dev->name))
+    	return -EBUSY;
     
-    /* Allocate a new 'dev' if needed. */
-    if (dev == NULL)
-      dev = init_etherdev(0, sizeof(struct sonic_local));
-
     if (sonic_debug  &&  version_printed++ == 0)
       printk(version);
 

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