aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 14:42:23 -0500
committerJonas Bonn <jonas@southpole.se>2013-11-15 05:03:51 -0500
commit621c2cd853fca98258b720d9fe7e8c031ec7f96f (patch)
treebf499fda61078e61a38cca93415c7b3a68d05e88 /arch/openrisc
parent0db041be3be9c84c2949a4f7eb9c3b6cd80ae97c (diff)
openrisc: Refactor or32_early_setup()
- Change fdt pointer (passed from head.S) from unsigned int to void *, which allows to kill a cast, and makes it compatible with __dtb_start. - Use pr_info(), - Extract common part. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: linux@lists.openrisc.net Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/kernel/setup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c
index 89c497813bab..7d205be45913 100644
--- a/arch/openrisc/kernel/setup.c
+++ b/arch/openrisc/kernel/setup.c
@@ -210,15 +210,15 @@ void __init setup_cpuinfo(void)
210 * Falls back on built-in device tree in case null pointer is passed. 210 * Falls back on built-in device tree in case null pointer is passed.
211 */ 211 */
212 212
213void __init or32_early_setup(unsigned int fdt) 213void __init or32_early_setup(void *fdt)
214{ 214{
215 if (fdt) { 215 if (fdt)
216 early_init_devtree((void*) fdt); 216 pr_info("FDT at %p\n", fdt);
217 printk(KERN_INFO "FDT at 0x%08x\n", fdt); 217 else {
218 } else { 218 fdt = __dtb_start;
219 early_init_devtree(__dtb_start); 219 pr_info("Compiled-in FDT at %p\n", fdt);
220 printk(KERN_INFO "Compiled-in FDT at %p\n", __dtb_start);
221 } 220 }
221 early_init_devtree(fdt);
222} 222}
223 223
224static int __init openrisc_device_probe(void) 224static int __init openrisc_device_probe(void)