powerpc/pci: Rename pcibios_find_pci_bus()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 3 May 2016 05:41:38 +0000 (15:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:24 +0000 (21:54 +1000)
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 <gwshan@linux.vnet.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/platforms/pseries/pci_dlpar.c
drivers/pci/hotplug/rpadlpar_core.c
drivers/pci/hotplug/rpaphp_pci.c

index 99027b8fb4677c08a3e246c03c374dd6a8617d96..f0a5b165363cd51545143989c07966df75c3fa1b 100644 (file)
@@ -257,7 +257,7 @@ static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn)
 #endif
 
 /** Find the bus corresponding to the indicated device node */
-extern struct pci_bus *pcibios_find_pci_bus(struct device_node *dn);
+extern struct pci_bus *pci_find_bus_by_node(struct device_node *dn);
 
 /** Remove all of the PCI devices under this bus */
 extern void pci_hp_remove_devices(struct pci_bus *bus);
index 5d4a3df59d0c95fedaa7c2235bb7dbc034d7d9f6..aee22b4b6174e14236c81f55496e608732ebc3b4 100644 (file)
@@ -54,8 +54,7 @@ find_bus_among_children(struct pci_bus *bus,
        return child;
 }
 
-struct pci_bus *
-pcibios_find_pci_bus(struct device_node *dn)
+struct pci_bus *pci_find_bus_by_node(struct device_node *dn)
 {
        struct pci_dn *pdn = dn->data;
 
@@ -64,7 +63,7 @@ pcibios_find_pci_bus(struct device_node *dn)
 
        return find_bus_among_children(pdn->phb->bus, dn);
 }
-EXPORT_SYMBOL_GPL(pcibios_find_pci_bus);
+EXPORT_SYMBOL_GPL(pci_find_bus_by_node);
 
 struct pci_controller *init_phb_dynamic(struct device_node *dn)
 {
index b770d6de815a4a2d949dec5858a000b6074a9c0b..dc67f39779ecd3cbfbd7d0f60eaafc627e85e2d2 100644 (file)
@@ -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;
index 137a8924adc5af2763aeb3c4f9de812e12e05c11..ea41ea1d3c0052790b5f18aacae1dd9e33016c0d 100644 (file)
@@ -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;
This page took 0.045534 seconds and 5 git commands to generate.