diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-20 09:39:40 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-22 12:21:47 +0000 |
commit | 0ea04f58531774411f1143ebf1a7a0dc70c7a48c (patch) | |
tree | f3b831f86723488c5fe71de29e2f8d3a55340505 /src/southbridge/amd/amd8111 | |
parent | b618b04992158fd86ac96e725225e095b74acf55 (diff) |
sb/{amd,broadcom,nvidia}: Make use of generic set_subsystem()
Change-Id: I99b87004ea74a1ad0ec1d6e0c500df11dae4997c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31990
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/southbridge/amd/amd8111')
-rw-r--r-- | src/southbridge/amd/amd8111/ac97.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/southbridge/amd/amd8111/ac97.c b/src/southbridge/amd/amd8111/ac97.c index c952cce73b..267c436ee9 100644 --- a/src/southbridge/amd/amd8111/ac97.c +++ b/src/southbridge/amd/amd8111/ac97.c @@ -19,15 +19,8 @@ #include <device/pci_ops.h> #include "amd8111.h" -static void lpci_set_subsystem(struct device *dev, unsigned int vendor, - unsigned int device) -{ - pci_write_config32(dev, 0x2c, - ((device & 0xffff) << 16) | (vendor & 0xffff)); -} - static struct pci_operations lops_pci = { - .set_subsystem = lpci_set_subsystem, + .set_subsystem = pci_dev_set_subsystem, }; static struct device_operations ac97audio_ops = { |