Skip to content

Commit c030008

Browse files
YijingWangbjorn-helgaas
authored andcommitted
PCI: Remove unused pci_scan_bus_parented()
No one uses pci_scan_bus_parented() any more, remove it. Signed-off-by: Yijing Wang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 515d425 commit c030008

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

drivers/pci/probe.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,25 +2094,6 @@ struct pci_bus *pci_scan_root_bus(struct device *parent, int bus,
20942094
}
20952095
EXPORT_SYMBOL(pci_scan_root_bus);
20962096

2097-
/* Deprecated; use pci_scan_root_bus() instead */
2098-
struct pci_bus *pci_scan_bus_parented(struct device *parent,
2099-
int bus, struct pci_ops *ops, void *sysdata)
2100-
{
2101-
LIST_HEAD(resources);
2102-
struct pci_bus *b;
2103-
2104-
pci_add_resource(&resources, &ioport_resource);
2105-
pci_add_resource(&resources, &iomem_resource);
2106-
pci_add_resource(&resources, &busn_resource);
2107-
b = pci_create_root_bus(parent, bus, ops, sysdata, &resources);
2108-
if (b)
2109-
pci_scan_child_bus(b);
2110-
else
2111-
pci_free_resource_list(&resources);
2112-
return b;
2113-
}
2114-
EXPORT_SYMBOL(pci_scan_bus_parented);
2115-
21162097
struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops,
21172098
void *sysdata)
21182099
{

include/linux/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,6 @@ void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
773773
void pcibios_scan_specific_bus(int busn);
774774
struct pci_bus *pci_find_bus(int domain, int busnr);
775775
void pci_bus_add_devices(const struct pci_bus *bus);
776-
struct pci_bus *pci_scan_bus_parented(struct device *parent, int bus,
777-
struct pci_ops *ops, void *sysdata);
778776
struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata);
779777
struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
780778
struct pci_ops *ops, void *sysdata,

0 commit comments

Comments
 (0)