summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx
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/i82801gx
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/i82801gx')
-rw-r--r--src/southbridge/intel/i82801gx/ac97.c8
-rw-r--r--src/southbridge/intel/i82801gx/azalia.c6
-rw-r--r--src/southbridge/intel/i82801gx/ide.c6
-rw-r--r--src/southbridge/intel/i82801gx/lpc.c6
-rw-r--r--src/southbridge/intel/i82801gx/pci.c6
-rw-r--r--src/southbridge/intel/i82801gx/pcie.c6
-rw-r--r--src/southbridge/intel/i82801gx/sata.c6
-rw-r--r--src/southbridge/intel/i82801gx/smbus.c6
-rw-r--r--src/southbridge/intel/i82801gx/usb.c6
9 files changed, 10 insertions, 46 deletions
diff --git a/src/southbridge/intel/i82801gx/ac97.c b/src/southbridge/intel/i82801gx/ac97.c
index 67426c7323..cc6e376130 100644
--- a/src/southbridge/intel/i82801gx/ac97.c
+++ b/src/southbridge/intel/i82801gx/ac97.c
@@ -234,17 +234,13 @@ static void ac97_modem_init(struct device *dev)
}
}
-static struct pci_operations ac97_pci_ops = {
- .set_subsystem = pci_dev_set_subsystem,
-};
-
static struct device_operations ac97_audio_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = ac97_audio_init,
.enable = i82801gx_enable,
- .ops_pci = &ac97_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
static struct device_operations ac97_modem_ops = {
@@ -253,7 +249,7 @@ static struct device_operations ac97_modem_ops = {
.enable_resources = pci_dev_enable_resources,
.init = ac97_modem_init,
.enable = i82801gx_enable,
- .ops_pci = &ac97_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
/* 82801GB/GR/GDH/GBM/GHM (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH) */
diff --git a/src/southbridge/intel/i82801gx/azalia.c b/src/southbridge/intel/i82801gx/azalia.c
index f835e68990..205fb0dbf4 100644
--- a/src/southbridge/intel/i82801gx/azalia.c
+++ b/src/southbridge/intel/i82801gx/azalia.c
@@ -282,17 +282,13 @@ static void azalia_init(struct device *dev)
}
}
-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,
.enable = i82801gx_enable,
- .ops_pci = &azalia_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
/* 82801GB/GR/GDH/GBM/GHM (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH) */
diff --git a/src/southbridge/intel/i82801gx/ide.c b/src/southbridge/intel/i82801gx/ide.c
index 5c4c96d8c8..7fb489dc2c 100644
--- a/src/southbridge/intel/i82801gx/ide.c
+++ b/src/southbridge/intel/i82801gx/ide.c
@@ -78,17 +78,13 @@ static void ide_init(struct device *dev)
printk(BIOS_DEBUG, "\n");
}
-static struct pci_operations ide_pci_ops = {
- .set_subsystem = pci_dev_set_subsystem,
-};
-
static struct device_operations ide_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = ide_init,
.enable = i82801gx_enable,
- .ops_pci = &ide_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
/* 82801GB/GR/GDH/GBM/GHM/GU (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH/ICH7-U) */
diff --git a/src/southbridge/intel/i82801gx/lpc.c b/src/southbridge/intel/i82801gx/lpc.c
index d4aef55f43..0bfe8eb52f 100644
--- a/src/southbridge/intel/i82801gx/lpc.c
+++ b/src/southbridge/intel/i82801gx/lpc.c
@@ -653,10 +653,6 @@ static void southbridge_fill_ssdt(const struct device *device)
intel_acpi_gen_def_acpi_pirq(device);
}
-static struct pci_operations pci_ops = {
- .set_subsystem = pci_dev_set_subsystem,
-};
-
static struct device_operations device_ops = {
.read_resources = i82801gx_lpc_read_resources,
.set_resources = pci_dev_set_resources,
@@ -668,7 +664,7 @@ static struct device_operations device_ops = {
.init = lpc_init,
.scan_bus = scan_static_bus,
.enable = i82801gx_enable,
- .ops_pci = &pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
.final = lpc_final,
};
diff --git a/src/southbridge/intel/i82801gx/pci.c b/src/southbridge/intel/i82801gx/pci.c
index f75e3fc41e..74724383a2 100644
--- a/src/southbridge/intel/i82801gx/pci.c
+++ b/src/southbridge/intel/i82801gx/pci.c
@@ -42,17 +42,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,
};
/* Desktop */
diff --git a/src/southbridge/intel/i82801gx/pcie.c b/src/southbridge/intel/i82801gx/pcie.c
index 7a49e52859..adf0e491b5 100644
--- a/src/southbridge/intel/i82801gx/pcie.c
+++ b/src/southbridge/intel/i82801gx/pcie.c
@@ -232,10 +232,6 @@ static void ich_pcie_enable(struct device *dev)
root_port_commit_config(dev);
}
-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,
@@ -243,7 +239,7 @@ static struct device_operations device_ops = {
.init = pci_init,
.enable = ich_pcie_enable,
.scan_bus = pci_scan_bridge,
- .ops_pci = &pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
static const unsigned short i82801gx_pcie_ids[] = {
diff --git a/src/southbridge/intel/i82801gx/sata.c b/src/southbridge/intel/i82801gx/sata.c
index bca02515d2..c98a645db7 100644
--- a/src/southbridge/intel/i82801gx/sata.c
+++ b/src/southbridge/intel/i82801gx/sata.c
@@ -211,17 +211,13 @@ static void sata_init(struct device *dev)
pci_write_config32(dev, SATA_IR, reg32);
}
-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,
.enable_resources = pci_dev_enable_resources,
.init = sata_init,
.enable = i82801gx_enable,
- .ops_pci = &sata_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
static const unsigned short sata_ids[] = {
diff --git a/src/southbridge/intel/i82801gx/smbus.c b/src/southbridge/intel/i82801gx/smbus.c
index 88b6e13330..e1e53c22de 100644
--- a/src/southbridge/intel/i82801gx/smbus.c
+++ b/src/southbridge/intel/i82801gx/smbus.c
@@ -65,10 +65,6 @@ static struct smbus_bus_operations lops_smbus_bus = {
.block_write = lsmbus_block_write,
};
-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);
@@ -86,7 +82,7 @@ static struct device_operations smbus_ops = {
.scan_bus = scan_smbus,
.enable = i82801gx_enable,
.ops_smbus_bus = &lops_smbus_bus,
- .ops_pci = &smbus_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
/* 82801GB/GR/GDH/GBM/GHM/GU (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH/ICH7-U) */
diff --git a/src/southbridge/intel/i82801gx/usb.c b/src/southbridge/intel/i82801gx/usb.c
index 6689fb854c..8ce57dfd13 100644
--- a/src/southbridge/intel/i82801gx/usb.c
+++ b/src/southbridge/intel/i82801gx/usb.c
@@ -27,17 +27,13 @@ static void usb_init(struct device *dev)
printk(BIOS_DEBUG, "done.\n");
}
-static struct pci_operations usb_pci_ops = {
- .set_subsystem = pci_dev_set_subsystem,
-};
-
static struct device_operations usb_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = usb_init,
.enable = i82801gx_enable,
- .ops_pci = &usb_pci_ops,
+ .ops_pci = &pci_dev_ops_pci,
};
/* 82801GB/GR/GDH/GBM/GHM/GU (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH/ICH7-U) */