aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/amd/family_10h-family_15h/ram_calc.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-02-08 13:38:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-04-30 09:23:47 +0000
commitd2d8a31305d83dd6c068d51a7f002377f5b5a0a5 (patch)
treeba1fe06193436e28a5cbbe6c5f2ed2b81c98789b /src/cpu/amd/family_10h-family_15h/ram_calc.c
parentfc1b49691f3c1c509ff0b6fb9e569893e687b4ef (diff)
cpu/amd: Get rid of device_t
Use of `device_t` has been abandoned in ramstage. Change-Id: I4b930a191130941c8349861cdd803a5be4219274 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23653 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/amd/family_10h-family_15h/ram_calc.c')
-rw-r--r--src/cpu/amd/family_10h-family_15h/ram_calc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/amd/family_10h-family_15h/ram_calc.c b/src/cpu/amd/family_10h-family_15h/ram_calc.c
index 62b7da377c..54fdaf5d7e 100644
--- a/src/cpu/amd/family_10h-family_15h/ram_calc.c
+++ b/src/cpu/amd/family_10h-family_15h/ram_calc.c
@@ -72,7 +72,7 @@ uint64_t get_cc6_memory_size()
if (pci_read_config32(PCI_DEV(0, 0x18, 2), 0x118) & (0x1 << 18))
enable_cc6 = 1;
#else
- device_t dct_dev = dev_find_slot(0, PCI_DEVFN(0x18, 2));
+ struct device *dct_dev = dev_find_slot(0, PCI_DEVFN(0x18, 2));
if (pci_read_config32(dct_dev, 0x118) & (0x1 << 18))
enable_cc6 = 1;
#endif