LoongArch: pci root bridige set acpi companion only when not acpi_disabled.
Upstream: no Fix patch "LoongArch: Add PCI controller support" Signed-off-by: Tianli Xiong <xiongtianli@loongson.cn> Signed-off-by: Ming Wang <wangming01@loongson.cn>
This commit is contained in:
parent
3aa7d2b12c
commit
15d29ccac6
|
@ -26,16 +26,17 @@ void pcibios_add_bus(struct pci_bus *bus)
|
|||
|
||||
int pcibios_root_bridge_prepare(struct pci_host_bridge *bridge)
|
||||
{
|
||||
struct acpi_device *adev = NULL;
|
||||
struct device *bus_dev = &bridge->bus->dev;
|
||||
struct pci_config_window *cfg = bridge->bus->sysdata;
|
||||
|
||||
if (!acpi_disabled)
|
||||
if (!acpi_disabled) {
|
||||
struct acpi_device *adev = NULL;
|
||||
struct device *bus_dev = &bridge->bus->dev;
|
||||
struct pci_config_window *cfg = bridge->bus->sysdata;
|
||||
|
||||
adev = to_acpi_device(cfg->parent);
|
||||
|
||||
ACPI_COMPANION_SET(&bridge->dev, adev);
|
||||
set_dev_node(bus_dev, pa_to_nid(cfg->res.start));
|
||||
|
||||
ACPI_COMPANION_SET(&bridge->dev, adev);
|
||||
set_dev_node(bus_dev, pa_to_nid(cfg->res.start));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue