patch-2.1.27 linux/drivers/net/3c59x.c

Next file: linux/drivers/net/Config.in
Previous file: linux/drivers/isdn/teles/teles.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/drivers/net/3c59x.c linux/drivers/net/3c59x.c
@@ -36,8 +36,12 @@
 #include <linux/ioport.h>
 #include <linux/malloc.h>
 #include <linux/interrupt.h>
+
+#ifdef CONFIG_PCI
 #include <linux/pci.h>
 #include <linux/bios32.h>
+#endif
+
 #include <linux/timer.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
@@ -79,7 +83,10 @@
 int vortex_debug = 1;
 #endif
 
+#ifdef CONFIG_PCI
 static int product_ids[] = {0x5900, 0x5950, 0x5951, 0x5952, 0, 0};
+#endif
+
 static const char *product_names[] = {
 	"3c590 Vortex 10Mbps",
 	"3c595 Vortex 100baseTX",
@@ -336,6 +343,7 @@
 {
 	int cards_found = 0;
 
+#ifdef CONFIG_PCI
 	if (pcibios_present()) {
 		static int pci_index = 0;
 		static int board_index = 0;
@@ -388,6 +396,7 @@
 			}
 		}
 	}
+#endif /* CONFIG_PCI */
 
 	/* Now check all slots of the EISA bus. */
 	if (EISA_bus) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov