aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/pcie.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/northbridge/intel/sandybridge/pcie.c b/src/northbridge/intel/sandybridge/pcie.c
index 16bc314b90..344cd8027e 100644
--- a/src/northbridge/intel/sandybridge/pcie.c
+++ b/src/northbridge/intel/sandybridge/pcie.c
@@ -65,20 +65,8 @@ static const char *pcie_acpi_name(const struct device *dev)
}
#endif
-static void
-pcie_set_subsystem(struct device *dev, unsigned int ven, unsigned int device)
-{
- /* NOTE: This is not the default position! */
- if (!ven || !device)
- pci_write_config32(dev, 0x94,
- pci_read_config32(dev, 0));
- else
- pci_write_config32(dev, 0x94,
- ((device & 0xffff) << 16) | (ven & 0xffff));
-}
-
static struct pci_operations pci_ops = {
- .set_subsystem = pcie_set_subsystem,
+ .set_subsystem = pci_dev_set_subsystem,
};
static struct device_operations device_ops = {