diff options
Diffstat (limited to 'arch/m68k/mvme147')
-rw-r--r-- | arch/m68k/mvme147/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index 3a1d47564e52..1bb3ce6634d3 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <asm/bootinfo.h> | 28 | #include <asm/bootinfo.h> |
29 | #include <asm/bootinfo-vme.h> | 29 | #include <asm/bootinfo-vme.h> |
30 | #include <asm/byteorder.h> | ||
30 | #include <asm/pgtable.h> | 31 | #include <asm/pgtable.h> |
31 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
32 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
@@ -54,7 +55,8 @@ irq_handler_t tick_handler; | |||
54 | 55 | ||
55 | int __init mvme147_parse_bootinfo(const struct bi_record *bi) | 56 | int __init mvme147_parse_bootinfo(const struct bi_record *bi) |
56 | { | 57 | { |
57 | if (bi->tag == BI_VME_TYPE || bi->tag == BI_VME_BRDINFO) | 58 | uint16_t tag = be16_to_cpu(bi->tag); |
59 | if (tag == BI_VME_TYPE || tag == BI_VME_BRDINFO) | ||
58 | return 0; | 60 | return 0; |
59 | else | 61 | else |
60 | return 1; | 62 | return 1; |