patch-2.3.37 linux/drivers/pci/compat.c

Next file: linux/drivers/pci/helper.c
Previous file: linux/drivers/parport/parport_pc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.36/linux/drivers/pci/compat.c linux/drivers/pci/compat.c
@@ -3,7 +3,7 @@
  *
  *	PCI Bus Services -- Function For Backward Compatibility
  *
- *	Copyright 1998, 1999 Martin Mares <mj@suse.cz>
+ *	Copyright 1998--2000 Martin Mares <mj@suse.cz>
  */
 
 #include <linux/types.h>
@@ -13,7 +13,7 @@
 int
 pcibios_present(void)
 {
-	return !!pci_devices;
+	return pci_devices.next != &pci_devices;
 }
 
 int

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