From 9d3de2649f46cc85269b4877f0d6e715a4fec5aa Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 5 Oct 2017 18:10:09 +0200 Subject: soc/intel/common: refactor locate_vbt and vbt_get Instead of having all callers provide a region_device just for the purpose of reading vbt.bin, let locate_vbt handle its entire life cycle, simplifying the VBT access API. Change-Id: Ib85e55164e217050b67674d020d17b2edf5ad14d Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/21897 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/drivers/intel/fsp2_0/graphics.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/drivers/intel') diff --git a/src/drivers/intel/fsp2_0/graphics.c b/src/drivers/intel/fsp2_0/graphics.c index e2ff7cf4f8..f2888e8575 100644 --- a/src/drivers/intel/fsp2_0/graphics.c +++ b/src/drivers/intel/fsp2_0/graphics.c @@ -96,10 +96,7 @@ enum cb_err fsp_fill_lb_framebuffer(struct lb_framebuffer *framebuffer) uintptr_t fsp_load_vbt(void) { - struct region_device rdev; - void *vbt_data = NULL; - - vbt_data = locate_vbt(&rdev); + void *vbt_data = locate_vbt(); if (vbt_data == NULL) printk(BIOS_NOTICE, "Could not locate a VBT file in CBFS\n"); -- cgit v1.2.3