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>
This commit is contained in:
Grant Likely
2009-11-24 03:37:56 -07:00
parent f00abd9491
commit 83f7a06eb4
4 changed files with 9 additions and 16 deletions

View File

@@ -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
*