diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2010-01-30 03:41:49 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-09 10:34:10 -0500 |
commit | 2e89e685a8fd0e8334de967739d11e2e28c1a4dd (patch) | |
tree | 6fdf51430532616584f0ffa65376b5a2a4c49a40 /drivers/of/fdt.c | |
parent | 36b9d3070d653af5807cef74ff129721d9047107 (diff) |
of: use __be32 for cell value accessors
Currently, we're using u32 for cell values, and hence assuming
host-endian device trees.
As we'd like to support little-endian platforms, use a __be32 for cell
values, and convert in the cell accessors.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 56fbd6e3122a..968a86af5301 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -431,9 +431,9 @@ int __init early_init_dt_scan_root(unsigned long node, const char *uname, | |||
431 | return 1; | 431 | return 1; |
432 | } | 432 | } |
433 | 433 | ||
434 | u64 __init dt_mem_next_cell(int s, u32 **cellp) | 434 | u64 __init dt_mem_next_cell(int s, __be32 **cellp) |
435 | { | 435 | { |
436 | u32 *p = *cellp; | 436 | __be32 *p = *cellp; |
437 | 437 | ||
438 | *cellp = p + s; | 438 | *cellp = p + s; |
439 | return of_read_number(p, s); | 439 | return of_read_number(p, s); |