summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/queensbay/tnc_dram.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-01-06 14:04:36 +0800
committerSimon Glass <sjg@chromium.org>2015-01-13 07:25:02 -0800
commitb2439aecd3091e754d3dc3f8be422fee74180295 (patch)
treeab18ede5630a831ee8561bee593b6b46e7f69cb0 /arch/x86/cpu/queensbay/tnc_dram.c
parentcb3b2e62caa7b87ed727d690c5a8bd1e003ab601 (diff)
x86: fsp: Drop get_hob_type() and get_hob_length()
These two are not worth having separate inline functions as they are really simple, so drop them. Also changed 'type' parameter of fsp_get_next_hob() from u16 to uint. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/queensbay/tnc_dram.c')
-rw-r--r--arch/x86/cpu/queensbay/tnc_dram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/queensbay/tnc_dram.c b/arch/x86/cpu/queensbay/tnc_dram.c
index b669dbc98b..df79a39dd8 100644
--- a/arch/x86/cpu/queensbay/tnc_dram.c
+++ b/arch/x86/cpu/queensbay/tnc_dram.c
@@ -19,7 +19,7 @@ int dram_init(void)
hdr = gd->arch.hob_list;
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == HOB_TYPE_RES_DESC) {
+ if (hdr->type == HOB_TYPE_RES_DESC) {
res_desc = (struct hob_res_desc *)hdr;
if (res_desc->type == RES_SYS_MEM ||
res_desc->type == RES_MEM_RESERVED) {
@@ -63,7 +63,7 @@ unsigned install_e820_map(unsigned max_entries, struct e820entry *entries)
hdr = gd->arch.hob_list;
while (!end_of_hob(hdr)) {
- if (get_hob_type(hdr) == HOB_TYPE_RES_DESC) {
+ if (hdr->type == HOB_TYPE_RES_DESC) {
res_desc = (struct hob_res_desc *)hdr;
entries[num_entries].addr = res_desc->phys_start;
entries[num_entries].size = res_desc->len;