aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_fdt.h
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@canonical.com>2010-01-30 03:41:49 -0500
committerGrant Likely <grant.likely@secretlab.ca>2010-02-09 10:34:10 -0500
commit2e89e685a8fd0e8334de967739d11e2e28c1a4dd (patch)
tree6fdf51430532616584f0ffa65376b5a2a4c49a40 /include/linux/of_fdt.h
parent36b9d3070d653af5807cef74ff129721d9047107 (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 'include/linux/of_fdt.h')
-rw-r--r--include/linux/of_fdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index f32f0fc5314a..6a35d91a53a6 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -78,7 +78,7 @@ extern void early_init_dt_check_for_initrd(unsigned long node);
78extern int early_init_dt_scan_memory(unsigned long node, const char *uname, 78extern int early_init_dt_scan_memory(unsigned long node, const char *uname,
79 int depth, void *data); 79 int depth, void *data);
80extern void early_init_dt_add_memory_arch(u64 base, u64 size); 80extern void early_init_dt_add_memory_arch(u64 base, u64 size);
81extern u64 dt_mem_next_cell(int s, u32 **cellp); 81extern u64 dt_mem_next_cell(int s, __be32 **cellp);
82 82
83/* 83/*
84 * If BLK_DEV_INITRD, the fdt early init code will call this function, 84 * If BLK_DEV_INITRD, the fdt early init code will call this function,