patch-2.3.38 linux/include/linux/pci.h

Next file: linux/include/linux/pkt_cls.h
Previous file: linux/include/linux/netdevice.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/include/linux/pci.h linux/include/linux/pci.h
@@ -487,10 +487,8 @@
 int pci_set_power_state(struct pci_dev *dev, int state);
 int pci_assign_resource(struct pci_dev *dev, int i);
 
-#define __pcidev(entry)	list_entry(entry, struct pci_dev, global_list)
-
 #define pci_for_each_dev(dev) \
-	for(dev = __pcidev(pci_devices.next); dev != __pcidev(&pci_devices); dev = __pcidev(dev->global_list.next))
+	for(dev = pci_dev_g(pci_devices.next); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.next))
 
 /* Helper functions for low-level code (drivers/pci/setup.c) */
 

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