diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2022-01-13 16:57:49 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-01-13 16:57:49 +0100 |
commit | fc10f9d6671a3aacf1161dcc52582c27e3585a64 (patch) | |
tree | 0ab36f6cc7b681bb148cfaf50448cf743e925af5 /drivers/pci/probe.c | |
parent | Merge branch 'remotes/lorenzo/pci/mediatek-gen3' (diff) | |
parent | PCI: mt7621: Allow COMPILE_TEST for all arches (diff) | |
download | linux-fc10f9d6671a3aacf1161dcc52582c27e3585a64.tar.xz linux-fc10f9d6671a3aacf1161dcc52582c27e3585a64.zip |
Merge branch 'pci/host/mt7621'
- Declare mt7621_pci_ops static (Sergio Paracuellos)
- Give pcibios_root_bridge_prepare() access to host bridge windows (Sergio
Paracuellos)
- Move MIPS I/O coherency unit setup from driver to
pcibios_root_bridge_prepare() (Sergio Paracuellos)
- Add missing MODULE_LICENSE() (Sergio Paracuellos)
- Allow COMPILE_TEST for all arches (Sergio Paracuellos)
* pci/host/mt7621:
PCI: mt7621: Allow COMPILE_TEST for all arches
PCI: mt7621: Add missing MODULE_LICENSE()
PCI: mt7621: Move MIPS setup to pcibios_root_bridge_prepare()
PCI: Let pcibios_root_bridge_prepare() access bridge->windows
PCI: mt7621: Declare mt7621_pci_ops static
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 496c8b8d903c..f2ba87b4fc2a 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -898,8 +898,6 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge) bridge->bus = bus; - /* Temporarily move resources off the list */ - list_splice_init(&bridge->windows, &resources); bus->sysdata = bridge->sysdata; bus->ops = bridge->ops; bus->number = bus->busn_res.start = bridge->busnr; @@ -925,6 +923,8 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge) if (err) goto free; + /* Temporarily move resources off the list */ + list_splice_init(&bridge->windows, &resources); err = device_add(&bridge->dev); if (err) { put_device(&bridge->dev); |