diff options
Diffstat (limited to 'arch/m68k/mvme147/config.c')
-rw-r--r-- | arch/m68k/mvme147/config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index 1c6262803b94..1bb3ce6634d3 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | 27 | ||
28 | #include <asm/bootinfo.h> | 28 | #include <asm/bootinfo.h> |
29 | #include <asm/bootinfo-vme.h> | ||
30 | #include <asm/byteorder.h> | ||
29 | #include <asm/pgtable.h> | 31 | #include <asm/pgtable.h> |
30 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
31 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
@@ -51,9 +53,10 @@ static int bcd2int (unsigned char b); | |||
51 | irq_handler_t tick_handler; | 53 | irq_handler_t tick_handler; |
52 | 54 | ||
53 | 55 | ||
54 | int mvme147_parse_bootinfo(const struct bi_record *bi) | 56 | int __init mvme147_parse_bootinfo(const struct bi_record *bi) |
55 | { | 57 | { |
56 | 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) | ||
57 | return 0; | 60 | return 0; |
58 | else | 61 | else |
59 | return 1; | 62 | return 1; |