summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-02-25 00:24:22 -0600
committerAaron Durbin <adurbin@google.com>2014-03-03 21:47:55 +0100
commit2d5cec640132616b8336c60fdc426391ed800ef8 (patch)
tree453d843081d3073c49d27fd3c2617cd66d23ca24 /src/lib
parentceebc0503f15788604d31e16ac391ce8f99ca32e (diff)
coreboot: remove unused get_lb_mem() function
The get_lb_mem() is no longer used. Therefore, remove it. Change-Id: I2d8427c460cfbb2b7a9870dfd54f4a75738cfb88 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5304 Tested-by: build bot (Jenkins) Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/coreboot_table.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index cb7179dc70..667c685981 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -354,18 +354,6 @@ static unsigned long lb_table_fini(struct lb_header *head)
return (unsigned long)rec + rec->size;
}
-/* Routines to extract part so the coreboot table or
- * information from the coreboot table after we have written it.
- * Currently get_lb_mem relies on a global we can change the
- * implementation.
- */
-static struct lb_memory *mem_ranges = NULL;
-
-struct lb_memory *get_lb_mem(void)
-{
- return mem_ranges;
-}
-
unsigned long write_coreboot_table(
unsigned long low_table_start, unsigned long low_table_end,
unsigned long rom_table_start, unsigned long rom_table_end)
@@ -430,8 +418,7 @@ unsigned long write_coreboot_table(
/* No other memory areas can be added after the memory table has been
* committed as the entries won't show up in the serialize mem table. */
- mem_ranges = lb_memory(head);
- bootmem_write_memory_table(mem_ranges);
+ bootmem_write_memory_table(lb_memory(head));
/* Record our motherboard */
lb_mainboard(head);