aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-05-31 00:03:28 +0200
committerNico Huber <nico.h@gmx.de>2020-06-06 20:36:51 +0000
commit1fc0edd9fe6b8072a87dce769789119e81af978b (patch)
treed4e44ae76f4c7ff4acfe7e0d7909addcd8927d4d /src/southbridge/intel/ibexpeak
parentfa276862f2b98f480c2cd2d6948e332756a37d54 (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/southbridge/intel/ibexpeak')
-rw-r--r--src/southbridge/intel/ibexpeak/azalia.c6
-rw-r--r--src/southbridge/intel/ibexpeak/lpc.c6
-rw-r--r--src/southbridge/intel/ibexpeak/me.c6
-rw-r--r--src/southbridge/intel/ibexpeak/sata.c6
-rw-r--r--src/southbridge/intel/ibexpeak/smbus.c6
-rw-r--r--src/southbridge/intel/ibexpeak/thermal.c6
6 files changed, 6 insertions, 30 deletions
diff --git a/src/southbridge/intel/ibexpeak/azalia.c b/src/southbridge/intel/ibexpeak/azalia.c
index 2fdb073cd0..59a384a81e 100644
--- a/src/southbridge/intel/ibexpeak/azalia.c
+++ b/src/southbridge/intel/ibexpeak/azalia.c
@@ -297,16 +297,12 @@ static void azalia_init(struct device *dev)
pci_write_config8(dev, 0x43, reg8);
}
-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,
};
static const unsigned short pci_device_ids[] = {
diff --git a/src/southbridge/intel/ibexpeak/lpc.c b/src/southbridge/intel/ibexpeak/lpc.c
index 742b86dfdf..f8926dc302 100644
--- a/src/southbridge/intel/ibexpeak/lpc.c
+++ b/src/southbridge/intel/ibexpeak/lpc.c
@@ -737,10 +737,6 @@ static void lpc_final(struct device *dev)
}
}
-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,
@@ -753,7 +749,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/ibexpeak/me.c b/src/southbridge/intel/ibexpeak/me.c
index 3d8a84ea32..2c9c87cbcc 100644
--- a/src/southbridge/intel/ibexpeak/me.c
+++ b/src/southbridge/intel/ibexpeak/me.c
@@ -590,16 +590,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 unsigned short pci_device_ids[] = {
diff --git a/src/southbridge/intel/ibexpeak/sata.c b/src/southbridge/intel/ibexpeak/sata.c
index 4343830a15..357ad5fc99 100644
--- a/src/southbridge/intel/ibexpeak/sata.c
+++ b/src/southbridge/intel/ibexpeak/sata.c
@@ -217,10 +217,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 = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
@@ -228,7 +224,7 @@ static struct device_operations sata_ops = {
.init = sata_init,
.enable = sata_enable,
.acpi_fill_ssdt = sata_fill_ssdt,
- .ops_pci = &sata_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
static const unsigned short pci_device_ids[] = {
diff --git a/src/southbridge/intel/ibexpeak/smbus.c b/src/southbridge/intel/ibexpeak/smbus.c
index a4cdbd25d7..7e9aa57da8 100644
--- a/src/southbridge/intel/ibexpeak/smbus.c
+++ b/src/southbridge/intel/ibexpeak/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);
@@ -80,7 +76,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,
};
static const unsigned short pci_device_ids[] = {
diff --git a/src/southbridge/intel/ibexpeak/thermal.c b/src/southbridge/intel/ibexpeak/thermal.c
index a1e6b0b49e..0b496dae55 100644
--- a/src/southbridge/intel/ibexpeak/thermal.c
+++ b/src/southbridge/intel/ibexpeak/thermal.c
@@ -30,16 +30,12 @@ static void thermal_init(struct device *dev)
printk(BIOS_DEBUG, "Thermal init done.\n");
}
-static struct pci_operations pci_ops = {
- .set_subsystem = pci_dev_set_subsystem,
-};
-
static struct device_operations thermal_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = thermal_init,
- .ops_pci = &pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
static const struct pci_driver pch_thermal __pci_driver = {