summaryrefslogtreecommitdiffstats
path: root/arch/m68k/bvme6000/config.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-10-04 11:41:24 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-11-26 11:09:21 +0100
commitabe48101c17eaf1b5d85270272392e6111562626 (patch)
tree4cf0f060b2e2efcfa41592be6aaf8a427dc09939 /arch/m68k/bvme6000/config.c
parentm68k/UAPI: Move VME Board ID definition to <asm/bootinfo-vme.h> (diff)
downloadlinux-abe48101c17eaf1b5d85270272392e6111562626.tar.xz
linux-abe48101c17eaf1b5d85270272392e6111562626.zip
m68k/UAPI: Use proper types (endianness/size) in <asm/bootinfo*.h>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/bvme6000/config.c')
-rw-r--r--arch/m68k/bvme6000/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c
index 4d1b403822fa..478623dbb209 100644
--- a/arch/m68k/bvme6000/config.c
+++ b/arch/m68k/bvme6000/config.c
@@ -29,6 +29,7 @@
#include <asm/bootinfo.h>
#include <asm/bootinfo-vme.h>
+#include <asm/byteorder.h>
#include <asm/pgtable.h>
#include <asm/setup.h>
#include <asm/irq.h>
@@ -53,7 +54,7 @@ static irq_handler_t tick_handler;
int __init bvme6000_parse_bootinfo(const struct bi_record *bi)
{
- if (bi->tag == BI_VME_TYPE)
+ if (be16_to_cpu(bi->tag) == BI_VME_TYPE)
return 0;
else
return 1;