summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sr5650
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 21:29:16 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-04 12:17:52 +0000
commit98a917443efa7429dd92b073e00876cfb274a058 (patch)
tree00f0b56191323e4e41d987707c303c409c051eac /src/southbridge/amd/sr5650
parentad7674ed00a810b472b2f66b3f5b2e0edbea02de (diff)
device: Replace ugly cases of dev_find_slot()
These few cases lacked a proper devfn parameter in the form of PCI_DEVFN(dev, fn). Change-Id: Iad0b214df12dee65360d07e887a960b0c73a3e4f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/26481 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/southbridge/amd/sr5650')
-rw-r--r--src/southbridge/amd/sr5650/pcie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/amd/sr5650/pcie.c b/src/southbridge/amd/sr5650/pcie.c
index f2fd5392fc..5084a122ce 100644
--- a/src/southbridge/amd/sr5650/pcie.c
+++ b/src/southbridge/amd/sr5650/pcie.c
@@ -447,8 +447,8 @@ static void EnableLclkGating(struct device *dev)
u32 reg = 0;
u32 mask = 0;
u32 value = 0;
- struct device *nb_dev = dev_find_slot(0, 0);
- struct device *clk_f1= dev_find_slot(0, 1);
+ struct device *nb_dev = pcidev_on_root(0x0, 0);
+ struct device *clk_f1 = pcidev_on_root(0x0, 1);
reg = 0xE8;
port = dev->path.pci.devfn >> 3;