[v2,16/16] PCI: Remove unused pci_dev_b()

Submitted by Bjorn Helgaas on Aug. 17, 2012, 11:37 p.m.


Message ID 20120817233707.10973.16684.stgit@bhelgaas.mtv.corp.google.com
State Superseded
Headers show

Commit Message

Bjorn Helgaas Aug. 17, 2012, 11:37 p.m.
All uses of pci_dev_b() have been replaced by list_for_each_entry(), so
remove it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
 include/linux/pci.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch hide | download patch | download mbox

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 1dce47c..ed47147 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -369,7 +369,6 @@  static inline struct pci_dev *pci_physfn(struct pci_dev *dev)
 extern struct pci_dev *alloc_pci_dev(void);
-#define pci_dev_b(n) list_entry(n, struct pci_dev, bus_list)
 #define	to_pci_dev(n) container_of(n, struct pci_dev, dev)
 #define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL)