summaryrefslogtreecommitdiffstats
path: root/src/device/dram
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-31 20:33:53 -0500
committerAaron Durbin <adurbin@google.com>2015-04-01 22:51:10 +0200
commita30f7e667ca56fdfeea98cbe736b61b67048c621 (patch)
tree9eafb9ea1b9f9f0c55df9a5131af147e08a4213b /src/device/dram
parent2a567eeb1d14d2f04d338a1ef6fbc7e46e90ed53 (diff)
downloadcoreboot-a30f7e667ca56fdfeea98cbe736b61b67048c621.tar.gz
coreboot-a30f7e667ca56fdfeea98cbe736b61b67048c621.tar.bz2
coreboot-a30f7e667ca56fdfeea98cbe736b61b67048c621.zip
cbfs: correct types used for accessing files
In commit 72a8e5e751a7fa97c9d198f68cad49f9d9851669 the Makefile's were updated to use named types for cbfs file addition. However, the call sites were not checked to ensure the types matched. Correct all call sites to use the named types. Change-Id: Ib9fa693ef517e3196a3f04e9c06db52a9116fee7 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9195 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/device/dram')
-rw-r--r--src/device/dram/spd_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dram/spd_cache.c b/src/device/dram/spd_cache.c
index 7ecd1dce0f05..8abb791634d7 100644
--- a/src/device/dram/spd_cache.c
+++ b/src/device/dram/spd_cache.c
@@ -36,8 +36,8 @@ int read_spd_from_cbfs(u8 *buf, int idx)
size_t min_len = (idx + 1) * SPD_SIZE;
printk(BIOS_DEBUG, "read SPD\n");
- spd_file = cbfs_get_file_content(CBFS_DEFAULT_MEDIA, "spd.bin", 0xab,
- &spd_file_len);
+ spd_file = cbfs_get_file_content(CBFS_DEFAULT_MEDIA, "spd.bin",
+ CBFS_TYPE_SPD, &spd_file_len);
if (!spd_file)
printk(BIOS_EMERG, "file [spd.bin] not found in CBFS");
if (spd_file_len < min_len)