m68k/UAPI: Use proper types (endianness/size) in <asm/bootinfo*.h>

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven
2013-10-04 11:41:24 +02:00
parent cf288bd5b1
commit abe48101c1
16 changed files with 125 additions and 99 deletions

View File

@@ -15,6 +15,7 @@
#include <asm/bootinfo.h>
#include <asm/bootinfo-hp300.h>
#include <asm/byteorder.h>
#include <asm/machdep.h>
#include <asm/blinken.h>
#include <asm/io.h> /* readb() and writeb() */
@@ -71,15 +72,15 @@ extern int hp300_setup_serial_console(void) __init;
int __init hp300_parse_bootinfo(const struct bi_record *record)
{
int unknown = 0;
const unsigned long *data = record->data;
const void *data = record->data;
switch (record->tag) {
switch (be16_to_cpu(record->tag)) {
case BI_HP300_MODEL:
hp300_model = *data;
hp300_model = be32_to_cpup(data);
break;
case BI_HP300_UART_SCODE:
hp300_uart_scode = *data;
hp300_uart_scode = be32_to_cpup(data);
break;
case BI_HP300_UART_ADDR: