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/southbridge/intel/bd82x6x | |
parent | fa276862f2b98f480c2cd2d6948e332756a37d54 (diff) | |
download | coreboot-1fc0edd9fe6b8072a87dce769789119e81af978b.tar.xz |
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/southbridge/intel/bd82x6x')
-rw-r--r-- | src/southbridge/intel/bd82x6x/azalia.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/lpc.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/me.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/me_8.x.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/pci.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/pcie.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/sata.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/smbus.c | 6 | ||||
-rw-r--r-- | src/southbridge/intel/bd82x6x/usb_xhci.c | 6 |
9 files changed, 9 insertions, 45 deletions
diff --git a/src/southbridge/intel/bd82x6x/azalia.c b/src/southbridge/intel/bd82x6x/azalia.c index 3be7b44676..470c67c9b2 100644 --- a/src/southbridge/intel/bd82x6x/azalia.c +++ b/src/southbridge/intel/bd82x6x/azalia.c @@ -322,16 +322,12 @@ static const char *azalia_acpi_name(const struct device *dev) return "HDEF"; } -static struct pci_operations azalia_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations azalia_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = azalia_init, - .ops_pci = &azalia_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_name = azalia_acpi_name, }; diff --git a/src/southbridge/intel/bd82x6x/lpc.c b/src/southbridge/intel/bd82x6x/lpc.c index 0f1d33e1c8..691db62cbe 100644 --- a/src/southbridge/intel/bd82x6x/lpc.c +++ b/src/southbridge/intel/bd82x6x/lpc.c @@ -861,10 +861,6 @@ void intel_southbridge_override_spi( memcpy(spi_config, &config->spi, sizeof(*spi_config)); } -static struct pci_operations pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations device_ops = { .read_resources = pch_lpc_read_resources, .set_resources = pci_dev_set_resources, @@ -877,7 +873,7 @@ static struct device_operations device_ops = { .final = lpc_final, .enable = pch_lpc_enable, .scan_bus = scan_static_bus, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, }; diff --git a/src/southbridge/intel/bd82x6x/me.c b/src/southbridge/intel/bd82x6x/me.c index 436553cd0f..bc0a71e3a7 100644 --- a/src/southbridge/intel/bd82x6x/me.c +++ b/src/southbridge/intel/bd82x6x/me.c @@ -676,16 +676,12 @@ static void intel_me_init(struct device *dev) } } -static struct pci_operations pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations device_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = intel_me_init, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, }; static const struct pci_driver intel_me __pci_driver = { diff --git a/src/southbridge/intel/bd82x6x/me_8.x.c b/src/southbridge/intel/bd82x6x/me_8.x.c index b930d3f1b1..f64e29c64a 100644 --- a/src/southbridge/intel/bd82x6x/me_8.x.c +++ b/src/southbridge/intel/bd82x6x/me_8.x.c @@ -667,16 +667,12 @@ static void intel_me_init(struct device *dev) } } -static struct pci_operations pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations device_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = intel_me_init, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, }; static const struct pci_driver intel_me __pci_driver = { diff --git a/src/southbridge/intel/bd82x6x/pci.c b/src/southbridge/intel/bd82x6x/pci.c index 6b36a4b0a8..e61c60cf85 100644 --- a/src/southbridge/intel/bd82x6x/pci.c +++ b/src/southbridge/intel/bd82x6x/pci.c @@ -44,17 +44,13 @@ static void pci_init(struct device *dev) pci_write_config16(dev, SECSTS, reg16); } -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, .enable_resources = pci_bus_enable_resources, .init = pci_init, .scan_bus = pci_scan_bridge, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, }; static const struct pci_driver pch_pci __pci_driver = { diff --git a/src/southbridge/intel/bd82x6x/pcie.c b/src/southbridge/intel/bd82x6x/pcie.c index 86935f8efd..5bc3412efa 100644 --- a/src/southbridge/intel/bd82x6x/pcie.c +++ b/src/southbridge/intel/bd82x6x/pcie.c @@ -292,10 +292,6 @@ static const char *pch_pcie_acpi_name(const struct device *dev) return NULL; } -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, @@ -304,7 +300,7 @@ static struct device_operations device_ops = { .enable = pch_pcie_enable, .scan_bus = pch_pciexp_scan_bridge, .acpi_name = pch_pcie_acpi_name, - .ops_pci = &pci_ops, + .ops_pci = &pci_dev_ops_pci, }; static const unsigned short pci_device_ids[] = { 0x1c10, 0x1c12, 0x1c14, 0x1c16, diff --git a/src/southbridge/intel/bd82x6x/sata.c b/src/southbridge/intel/bd82x6x/sata.c index 27b4d16bc5..1974e2b855 100644 --- a/src/southbridge/intel/bd82x6x/sata.c +++ b/src/southbridge/intel/bd82x6x/sata.c @@ -279,10 +279,6 @@ static void sata_fill_ssdt(const struct device *dev) generate_sata_ssdt_ports("\\_SB_.PCI0.SATA", config->sata_port_map); } -static struct pci_operations sata_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations sata_ops = { .read_resources = sata_read_resources, .set_resources = sata_set_resources, @@ -290,7 +286,7 @@ static struct device_operations sata_ops = { .acpi_fill_ssdt = sata_fill_ssdt, .init = sata_init, .enable = sata_enable, - .ops_pci = &sata_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_name = sata_acpi_name, }; diff --git a/src/southbridge/intel/bd82x6x/smbus.c b/src/southbridge/intel/bd82x6x/smbus.c index 6e5be9b484..1b72ea51ef 100644 --- a/src/southbridge/intel/bd82x6x/smbus.c +++ b/src/southbridge/intel/bd82x6x/smbus.c @@ -56,10 +56,6 @@ static struct smbus_bus_operations lops_smbus_bus = { .write_byte = lsmbus_write_byte, }; -static struct pci_operations smbus_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static void smbus_read_resources(struct device *dev) { struct resource *res = new_resource(dev, PCI_BASE_ADDRESS_4); @@ -85,7 +81,7 @@ static struct device_operations smbus_ops = { .scan_bus = scan_smbus, .init = pch_smbus_init, .ops_smbus_bus = &lops_smbus_bus, - .ops_pci = &smbus_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_name = smbus_acpi_name, }; diff --git a/src/southbridge/intel/bd82x6x/usb_xhci.c b/src/southbridge/intel/bd82x6x/usb_xhci.c index db925e0df0..5a5b418b43 100644 --- a/src/southbridge/intel/bd82x6x/usb_xhci.c +++ b/src/southbridge/intel/bd82x6x/usb_xhci.c @@ -43,16 +43,12 @@ static const char *xhci_acpi_name(const struct device *dev) return "XHC"; } -static struct pci_operations xhci_pci_ops = { - .set_subsystem = pci_dev_set_subsystem, -}; - static struct device_operations usb_xhci_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = usb_xhci_init, - .ops_pci = &xhci_pci_ops, + .ops_pci = &pci_dev_ops_pci, .acpi_name = xhci_acpi_name, }; |