summaryrefslogtreecommitdiffstats
path: root/src/southbridge/ricoh
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2019-03-20 15:09:44 +0530
committerPatrick Georgi <pgeorgi@google.com>2019-03-21 16:19:34 +0000
commit15ccbf042ddda877cde23e9b0d5d3f5256e62c33 (patch)
tree66e2cfdad792dee5b8a66f68135629351635277b /src/southbridge/ricoh
parent9514d47d3c7296ff98bb7a590e36ee548b40e369 (diff)
downloadcoreboot-15ccbf042ddda877cde23e9b0d5d3f5256e62c33.tar.gz
coreboot-15ccbf042ddda877cde23e9b0d5d3f5256e62c33.tar.bz2
coreboot-15ccbf042ddda877cde23e9b0d5d3f5256e62c33.zip
{northbridge, soc, southbridge}/intel: Make use of generic set_subsystem()
This patch removes all local definitions of sub_system functions and make use of common generic pci_dev_set_subsystem() from PCI bridge and Cardbus devices as well. Change-Id: I5fbed39ed448baf11f0e0786ce0ee94741d57237 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31950 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/southbridge/ricoh')
-rw-r--r--src/southbridge/ricoh/rl5c476/rl5c476.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/ricoh/rl5c476/rl5c476.c b/src/southbridge/ricoh/rl5c476/rl5c476.c
index 4d8b6e63229e..c94722cb5247 100644
--- a/src/southbridge/ricoh/rl5c476/rl5c476.c
+++ b/src/southbridge/ricoh/rl5c476/rl5c476.c
@@ -200,8 +200,8 @@ static void rl5c476_set_subsystem(struct device *dev, unsigned vendor,
/* Enable subsystem id register writes */
pci_write_config16(dev, 0x82, miscreg | 0x40);
- pci_write_config16(dev, 0x40, vendor);
- pci_write_config16(dev, 0x42, device);
+ pci_dev_set_subsystem(dev, vendor, device);
+
/* restore original contents */
pci_write_config16(dev, 0x82, miscreg);
}