From a30f7e667ca56fdfeea98cbe736b61b67048c621 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 31 Mar 2015 20:33:53 -0500 Subject: 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 Reviewed-on: http://review.coreboot.org/9195 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/mainboard/google/link/romstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/link/romstage.c') diff --git a/src/mainboard/google/link/romstage.c b/src/mainboard/google/link/romstage.c index b5d64b0669..2e7ee5240e 100644 --- a/src/mainboard/google/link/romstage.c +++ b/src/mainboard/google/link/romstage.c @@ -95,8 +95,8 @@ static void copy_spd(struct pei_data *peid) int spd_index = get_gpios(gpio_vector); printk(BIOS_DEBUG, "spd index %d\n", spd_index); - 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) die("SPD data not found."); -- cgit v1.2.3