mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
powerpc: Remove shims for pci_controller_ops operations
Remove shims, patch callsites to use pci_controller_ops versions instead. Also move back the probe mode defines, as explained in the patch for pci_probe_mode. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
9c1368fc50
commit
467efc2e4f
7 changed files with 50 additions and 113 deletions
|
@ -73,12 +73,16 @@ void pcibios_add_pci_devices(struct pci_bus * bus)
|
|||
{
|
||||
int slotno, mode, pass, max;
|
||||
struct pci_dev *dev;
|
||||
struct pci_controller *phb;
|
||||
struct device_node *dn = pci_bus_to_OF_node(bus);
|
||||
|
||||
eeh_add_device_tree_early(PCI_DN(dn));
|
||||
|
||||
phb = pci_bus_to_host(bus);
|
||||
|
||||
mode = PCI_PROBE_NORMAL;
|
||||
mode = pci_probe_mode(bus);
|
||||
if (phb->controller_ops.probe_mode)
|
||||
mode = phb->controller_ops.probe_mode(bus);
|
||||
|
||||
if (mode == PCI_PROBE_DEVTREE) {
|
||||
/* use ofdt-based probe */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue