summaryrefslogtreecommitdiff
path: root/src/acpi/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi/acpi.c')
-rw-r--r--src/acpi/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index 0e4798c448..6bf452e919 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -700,8 +700,8 @@ void acpi_create_ipmi(const struct device *device,
if (device->path.type == DEVICE_PATH_PCI) {
spmi->pci_device_flag = ACPI_IPMI_PCI_DEVICE_FLAG;
- spmi->pci_segment_group = device->bus->segment_group;
- spmi->pci_bus = device->bus->secondary;
+ spmi->pci_segment_group = device->upstream->segment_group;
+ spmi->pci_bus = device->upstream->secondary;
spmi->pci_device = device->path.pci.devfn >> 3;
spmi->pci_function = device->path.pci.devfn & 0x7;
} else if (type != IPMI_INTERFACE_SSIF) {