Commit 38264c04 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: finally remove pci_for_each_dev() now that all users of it are gone.

parent 40c1c465
...@@ -527,8 +527,6 @@ static inline int pci_present(void) ...@@ -527,8 +527,6 @@ static inline int pci_present(void)
return !list_empty(&pci_devices); return !list_empty(&pci_devices);
} }
#define pci_for_each_dev(dev) \
for(dev = pci_dev_g(pci_devices.next); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.next))
#define pci_for_each_dev_reverse(dev) \ #define pci_for_each_dev_reverse(dev) \
for(dev = pci_dev_g(pci_devices.prev); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.prev)) for(dev = pci_dev_g(pci_devices.prev); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.prev))
#define pci_for_each_bus(bus) \ #define pci_for_each_bus(bus) \
...@@ -714,9 +712,6 @@ static inline int pci_restore_state(struct pci_dev *dev, u32 *buffer) { return 0 ...@@ -714,9 +712,6 @@ static inline int pci_restore_state(struct pci_dev *dev, u32 *buffer) { return 0
static inline int pci_set_power_state(struct pci_dev *dev, int state) { return 0; } static inline int pci_set_power_state(struct pci_dev *dev, int state) { return 0; }
static inline int pci_enable_wake(struct pci_dev *dev, u32 state, int enable) { return 0; } static inline int pci_enable_wake(struct pci_dev *dev, u32 state, int enable) { return 0; }
#define pci_for_each_dev(dev) \
for(dev = NULL; 0; )
#define isa_bridge ((struct pci_dev *)NULL) #define isa_bridge ((struct pci_dev *)NULL)
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment