From fd2bb9b6bc06515f2a42a8575812271765f73313 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Oct 2022 14:36:55 +0200 Subject: soc/amd/*: Hook up SMBus ops to devicetree This removes the need for a PCI driver. Change-Id: Iab75f8c28a247f1370f4425e19cc215678bfa3e5 Signed-off-by: Arthur Heymans Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/68140 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/common/block/smbus/sm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/smbus/sm.c b/src/soc/amd/common/block/smbus/sm.c index 801a1543b4..9ab31f204d 100644 --- a/src/soc/amd/common/block/smbus/sm.c +++ b/src/soc/amd/common/block/smbus/sm.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include @@ -64,7 +63,7 @@ static const char *smbus_acpi_name(const struct device *dev) } #endif -static struct device_operations smbus_ops = { +struct device_operations amd_smbus_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, .enable_resources = pci_dev_enable_resources, @@ -75,10 +74,3 @@ static struct device_operations smbus_ops = { .acpi_name = smbus_acpi_name, #endif }; - -static const struct pci_driver smbus_driver __pci_driver = { - .ops = &smbus_ops, - .vendor = PCI_VID_AMD, - /* PCI device ID is used on all integrated FCHs except Family 16h Models 00h-3Fh */ - .device = PCI_DID_AMD_CZ_SMBUS, -}; -- cgit v1.2.3