summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/queensbay/tnc_dram.c
diff options
context:
space:
mode:
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 b669dbc..df79a39 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;