Remove host bridge hotplug unsafe interface pci_get_next_bus(), it has been replaced by pci_{get|put}_root_buses(). Signed-off-by: Jiang Liu <jiang.liu@xxxxxxxxxx> --- drivers/pci/search.c | 25 ------------------------- include/linux/pci.h | 4 ---- 2 files changed, 29 deletions(-) diff --git a/drivers/pci/search.c b/drivers/pci/search.c index 8b20a33..7aadd45 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -116,30 +116,6 @@ struct pci_bus * pci_find_bus(int domain, int busnr) return bus; } -/** - * pci_find_next_bus - begin or continue searching for a PCI bus - * @from: Previous PCI bus found, or %NULL for new search. - * - * Iterates through the list of known PCI busses. A new search is - * initiated by passing %NULL as the @from argument. Otherwise if - * @from is not %NULL, searches continue from next device on the - * global list. - */ -struct pci_bus * -pci_find_next_bus(const struct pci_bus *from) -{ - struct list_head *n; - struct pci_bus *b = NULL; - - WARN_ON(in_interrupt()); - down_read(&pci_bus_sem); - n = from ? from->node.next : pci_root_buses.next; - if (n != &pci_root_buses) - b = pci_bus_b(n); - up_read(&pci_bus_sem); - return b; -} - struct pci_bus ** pci_get_root_buses(int *bus_num) { @@ -396,7 +372,6 @@ EXPORT_SYMBOL(pci_dev_present); /* For boot time work */ EXPORT_SYMBOL(pci_find_bus); -EXPORT_SYMBOL(pci_find_next_bus); /* For everyone */ EXPORT_SYMBOL(pci_get_device); EXPORT_SYMBOL(pci_get_subsys); diff --git a/include/linux/pci.h b/include/linux/pci.h index bc1ab5f..ea78235 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -756,7 +756,6 @@ int pci_find_ext_capability(struct pci_dev *dev, int cap); int pci_find_next_ext_capability(struct pci_dev *dev, int pos, int cap); int pci_find_ht_capability(struct pci_dev *dev, int ht_cap); int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap); -struct pci_bus *pci_find_next_bus(const struct pci_bus *from); struct pci_bus ** pci_get_root_buses(int *bus_num); void pci_put_root_buses(struct pci_bus **buses, int count); @@ -1401,9 +1400,6 @@ static inline int pci_block_cfg_access_in_atomic(struct pci_dev *dev) static inline void pci_unblock_cfg_access(struct pci_dev *dev) { } -static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) -{ return NULL; } - static inline struct pci_bus ** pci_get_root_buses(int *bus_num) { *bus_num = 0; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html