diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-11-24 03:44:23 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-11-24 03:44:23 +0100 |
commit | 819d2819303654c6829d572e698e2d0021c08599 (patch) | |
tree | 8e98224edfc837a630625b9e05c74121c7fa9b3f /arch/microblaze/kernel/prom.c | |
parent | of/flattree: merge of_scan_flat_dt (diff) | |
download | linux-819d2819303654c6829d572e698e2d0021c08599.tar.xz linux-819d2819303654c6829d572e698e2d0021c08599.zip |
of/flattree: merge of_get_flat_dt_root
Merge common code between PowerPC and MicroBlaze
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/prom.c')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 0db8ee64ffe6..7eb6f8bdb81a 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c @@ -50,18 +50,6 @@ typedef u32 cell_t; /* export that to outside world */ struct device_node *of_chosen; -unsigned long __init of_get_flat_dt_root(void) -{ - unsigned long p = ((unsigned long)initial_boot_params) + - initial_boot_params->off_dt_struct; - - while (*((u32 *)p) == OF_DT_NOP) - p += 4; - BUG_ON(*((u32 *)p) != OF_DT_BEGIN_NODE); - p += 4; - return _ALIGN(p + strlen((char *)p) + 1, 4); -} - /** * This function can be used within scan_flattened_dt callback to get * access to properties |