summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/agesa/family15tn/dimmSpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/amd/agesa/family15tn/dimmSpd.c')
-rw-r--r--src/northbridge/amd/agesa/family15tn/dimmSpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/amd/agesa/family15tn/dimmSpd.c b/src/northbridge/amd/agesa/family15tn/dimmSpd.c
index 528bc4337c..7ca47097b2 100644
--- a/src/northbridge/amd/agesa/family15tn/dimmSpd.c
+++ b/src/northbridge/amd/agesa/family15tn/dimmSpd.c
@@ -32,7 +32,7 @@ AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINTN unused2, AGESA_READ_SPD_PAR
{
UINT8 spdAddress;
- DEVTREE_CONST struct device *dev = dev_find_slot(0, PCI_DEVFN(0x18, 2));
+ DEVTREE_CONST struct device *dev = pcidev_on_root(0x18, 2);
if (dev == NULL)
return AGESA_ERROR;