patch-2.4.0-test3 linux/drivers/net/3c515.c

Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/net/3c509.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/net/3c515.c linux/drivers/net/3c515.c
@@ -363,8 +363,9 @@
 int corkscrew_isapnp_phys_addr[3] = {
 	0, 0, 0
 };
-#endif
+
 static int nopnp = 0;
+#endif
 
 static int corkscrew_scan(struct net_device *dev);
 static struct net_device *corkscrew_found_device(struct net_device *dev,
@@ -439,9 +440,11 @@
 static int corkscrew_scan(struct net_device *dev)
 {
 	int cards_found = 0;
-	short i;
 	static int ioaddr;
+#ifdef __ISAPNP__
+	short i;
 	static int pnp_cards = 0;
+#endif
 
 #ifdef __ISAPNP__
 	if(nopnp == 1)

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