diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-11-24 03:37:56 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-10 15:23:15 -0700 |
commit | 83f7a06eb479e2aeb83536e77a2cb14cc2285e32 (patch) | |
tree | 3f81f85739eaa781ee17213e5d2be086fb419ff3 /drivers/of/fdt.c | |
parent | f00abd94918c9780f9d2d961fc0e419c11457922 (diff) |
of/flattree: merge dt_mem_next_cell
Merge common code between PowerPC and Microblaze
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index be200be47269..ebce509b0886 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -432,6 +432,14 @@ int __init early_init_dt_scan_root(unsigned long node, const char *uname, return 1; } +u64 __init dt_mem_next_cell(int s, u32 **cellp) +{ + u32 *p = *cellp; + + *cellp = p + s; + return of_read_number(p, s); +} + /** * unflatten_device_tree - create tree of device_nodes from flat blob * |