From ff092d416769b4308c8c03a0dca578d5ce22ede6 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 17 Feb 2021 00:04:59 +0100 Subject: soc/amd/picasso/root_complex: provide ACPI name in PCI device_operations Signed-off-by: Felix Held Change-Id: I5471f7be41683ef4a14107f38e93339080d01bdd Reviewed-on: https://review.coreboot.org/c/coreboot/+/50820 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/chip.c | 2 -- src/soc/amd/picasso/root_complex.c | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/soc/amd/picasso/chip.c b/src/soc/amd/picasso/chip.c index 5bf347b45c..1c8671c01e 100644 --- a/src/soc/amd/picasso/chip.c +++ b/src/soc/amd/picasso/chip.c @@ -35,8 +35,6 @@ static const char *soc_acpi_name(const struct device *dev) if (dev->bus->dev->path.type == DEVICE_PATH_DOMAIN) { switch (dev->path.pci.devfn) { - case GNB_DEVFN: - return "GNB"; case IOMMU_DEVFN: return "IOMM"; default: diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c index 6e98698e43..ee9764cb7d 100644 --- a/src/soc/amd/picasso/root_complex.c +++ b/src/soc/amd/picasso/root_complex.c @@ -269,11 +269,17 @@ static void root_complex_fill_ssdt(const struct device *device) acipgen_dptci(); } +static const char *gnb_acpi_name(const struct device *dev) +{ + return "GNB"; +} + static struct device_operations root_complex_operations = { .read_resources = read_resources, .set_resources = noop_set_resources, .enable_resources = pci_dev_enable_resources, .init = root_complex_init, + .acpi_name = gnb_acpi_name, .acpi_fill_ssdt = root_complex_fill_ssdt, }; -- cgit v1.2.3