patch-2.3.27 linux/drivers/net/sunlance.c

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

diff -u --recursive --new-file v2.3.26/linux/drivers/net/sunlance.c linux/drivers/net/sunlance.c
@@ -1157,7 +1157,7 @@
 #include <asm/sun4paddr.h>
 
 /* Find all the lance cards on the system and initialize them */
-int __init sparc_lance_probe (struct net_device *dev)
+int __init sparc_lance_probe(void)
 {
 	static struct linux_sbus_device sdev;
 	static int called = 0;
@@ -1171,7 +1171,7 @@
 		memset (&sdev, 0, sizeof(sdev));
 		sdev.reg_addrs[0].phys_addr = sun4_eth_physaddr;
 		sdev.irqs[0] = 6;
-		return sparc_lance_init(dev, &sdev, 0, 0);
+		return sparc_lance_init(NULL, &sdev, 0, 0);
 	}
 	return ENODEV;
 }
@@ -1179,10 +1179,11 @@
 #else /* !CONFIG_SUN4 */
 
 /* Find all the lance cards on the system and initialize them */
-int __init sparc_lance_probe (struct net_device *dev)
+int __init sparc_lance_probe (void)
 {
 	struct linux_sbus *bus;
 	struct linux_sbus_device *sdev = 0;
+	struct net_device *dev = NULL;
 	struct Linux_SBus_DMA *ledma = 0;
 	static int called = 0;
 	int cards = 0, v;
@@ -1229,7 +1230,7 @@
 init_module(void)
 {
 	root_lance_dev = NULL;
-	return sparc_lance_probe(NULL);
+	return sparc_lance_probe();
 }
 
 void

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