From ce768f3baff20815f227fffbf1bb406f3a7dd1a7 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 20 May 2017 20:47:18 +0200 Subject: lib/coreboot_tables: Remove weak fill_lb_framebuffer() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the weak function stub fill_lb_framebuffer() and guard with the new `CONFIG_LINEAR_FRAMEBUFFER` instead. Change-Id: Ia9e477c2d501b249a632968b5636ac803323895a Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/19807 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Philippe Mathieu-Daudé --- src/lib/coreboot_table.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index f3cdb0bb14..aa6c7a51d6 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -135,17 +135,12 @@ void lb_add_console(uint16_t consoletype, void *data) console->type = consoletype; } -int __attribute__((weak)) fill_lb_framebuffer(struct lb_framebuffer *fb) -{ - return -1; -} - static void lb_framebuffer(struct lb_header *header) { struct lb_framebuffer *framebuffer; struct lb_framebuffer fb; - if (fill_lb_framebuffer(&fb)) + if (!IS_ENABLED(CONFIG_LINEAR_FRAMEBUFFER) || fill_lb_framebuffer(&fb)) return; framebuffer = (struct lb_framebuffer *)lb_new_record(header); -- cgit v1.2.3