mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
powerpc/pci: Rename pcibios_find_pci_bus()
This renames pcibios_find_pci_bus() to pci_find_bus_by_node() to avoid conflicts with those PCI subsystem weak function names, which have prefix "pcibios". No logical changes introduced. Signed-off-by: Gavin Shan <[email protected]> Reviewed-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
bd251b893d
commit
3773dd258e
4 changed files with 7 additions and 8 deletions
|
|
@ -175,7 +175,7 @@ static int dlpar_add_pci_slot(char *drc_name, struct device_node *dn)
|
|||
struct pci_dev *dev;
|
||||
struct pci_controller *phb;
|
||||
|
||||
if (pcibios_find_pci_bus(dn))
|
||||
if (pci_find_bus_by_node(dn))
|
||||
return -EINVAL;
|
||||
|
||||
/* Add pci bus */
|
||||
|
|
@ -212,7 +212,7 @@ static int dlpar_remove_phb(char *drc_name, struct device_node *dn)
|
|||
struct pci_dn *pdn;
|
||||
int rc = 0;
|
||||
|
||||
if (!pcibios_find_pci_bus(dn))
|
||||
if (!pci_find_bus_by_node(dn))
|
||||
return -EINVAL;
|
||||
|
||||
/* If pci slot is hotpluggable, use hotplug to remove it */
|
||||
|
|
@ -356,7 +356,7 @@ int dlpar_remove_pci_slot(char *drc_name, struct device_node *dn)
|
|||
|
||||
pci_lock_rescan_remove();
|
||||
|
||||
bus = pcibios_find_pci_bus(dn);
|
||||
bus = pci_find_bus_by_node(dn);
|
||||
if (!bus) {
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ int rpaphp_enable_slot(struct slot *slot)
|
|||
if (rc)
|
||||
return rc;
|
||||
|
||||
bus = pcibios_find_pci_bus(slot->dn);
|
||||
bus = pci_find_bus_by_node(slot->dn);
|
||||
if (!bus) {
|
||||
err("%s: no pci_bus for dn %s\n", __func__, slot->dn->full_name);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue