From 987ec8837ac8c5288a92af52c9bdd51f9019db3c Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Oct 2022 21:50:23 +0200 Subject: soc/amd/acp: Hook up ops in devicetree This removes the need for a PCI driver. Change-Id: Id25016703d1716930d9b6c6d1dab5481b10aca17 Signed-off-by: Arthur Heymans Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/68145 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Fred Reitberger --- src/soc/amd/common/block/acp/acp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/acp/acp.c b/src/soc/amd/common/block/acp/acp.c index cf0e9f8fe2..a43792eea7 100644 --- a/src/soc/amd/common/block/acp/acp.c +++ b/src/soc/amd/common/block/acp/acp.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include "acp_def.h" @@ -42,7 +41,7 @@ static void acp_fill_ssdt(const struct device *dev) acp_fill_wov_method(dev); } -static struct device_operations acp_ops = { +struct device_operations amd_acp_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, @@ -52,9 +51,3 @@ static struct device_operations acp_ops = { .acpi_name = acp_acpi_name, .acpi_fill_ssdt = acp_fill_ssdt, }; - -static const struct pci_driver acp_driver __pci_driver = { - .ops = &acp_ops, - .vendor = PCI_VID_AMD, - .device = PCI_DID_AMD_FAM17H_ACP, -}; -- cgit v1.2.3