diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-05-31 00:03:28 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2020-06-06 20:36:51 +0000 |
commit | 1fc0edd9fe6b8072a87dce769789119e81af978b (patch) | |
tree | d4e44ae76f4c7ff4acfe7e0d7909addcd8927d4d /src/northbridge/intel/sandybridge | |
parent | fa276862f2b98f480c2cd2d6948e332756a37d54 (diff) |
src: Use pci_dev_ops_pci where applicable
Change-Id: Ie004a94a49fc8f53c370412bee1c3e7eacbf8beb
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41944
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/intel/sandybridge')
-rw-r--r-- | src/northbridge/intel/sandybridge/gma.c | 6 | ||||
-rw-r--r-- | src/northbridge/intel/sandybridge/northbridge.c | 6 | ||||
-rw-r--r-- | src/northbridge/intel/sandybridge/pcie.c | 6 |
3 files changed, 3 insertions, 15 deletions
diff --git a/src/northbridge/intel/sandybridge/gma.c b/src/northbridge/intel/sandybridge/gma.c index 150b61c9b9..aa66f4ae84 100644 --- a/src/northbridge/intel/sandybridge/gma.c +++ b/src/northbridge/intel/sandybridge/gma.c @@ -646,10 +646,6 @@ static void gma_func0_disable(struct device *dev) dev->enabled = 0; } -static struct pci_operations gma_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations gma_func0_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, @@ -657,7 +653,7 @@ static struct device_operations gma_func0_ops = { .acpi_fill_ssdt = gma_generate_ssdt, .init = gma_func0_init, .disable = gma_func0_disable, - .ops_pci = &gma_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_name = gma_acpi_name, }; diff --git a/src/northbridge/intel/sandybridge/northbridge.c b/src/northbridge/intel/sandybridge/northbridge.c index ce28c05fd4..1d20a4b57a 100644 --- a/src/northbridge/intel/sandybridge/northbridge.c +++ b/src/northbridge/intel/sandybridge/northbridge.c @@ -425,16 +425,12 @@ void northbridge_write_smram(u8 smram) pci_write_config8(pcidev_on_root(0, 0), SMRAM, smram); } -static struct pci_operations intel_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations mc_ops = { .read_resources = mc_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = northbridge_init, - .ops_pci = &intel_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_fill_ssdt = generate_cpu_entries, }; diff --git a/src/northbridge/intel/sandybridge/pcie.c b/src/northbridge/intel/sandybridge/pcie.c index f2b75d6ca6..d0b7fd5820 100644 --- a/src/northbridge/intel/sandybridge/pcie.c +++ b/src/northbridge/intel/sandybridge/pcie.c @@ -50,10 +50,6 @@ static const char *pcie_acpi_name(const struct device *dev) } #endif -static struct pci_operations pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations device_ops = { .read_resources = pci_bus_read_resources, .set_resources = pci_dev_set_resources, @@ -62,7 +58,7 @@ static struct device_operations device_ops = { .reset_bus = pci_bus_reset, .disable = pcie_disable, .init = pci_dev_init, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, #if CONFIG(HAVE_ACPI_TABLES) .acpi_name = pcie_acpi_name, #endif |