aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 7f8856655144..1ecd6c6ecabd 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -373,36 +373,6 @@ static int __init early_init_dt_scan_cpus(unsigned long node,
373 return 0; 373 return 0;
374} 374}
375 375
376#ifdef CONFIG_BLK_DEV_INITRD
377static void __init early_init_dt_check_for_initrd(unsigned long node)
378{
379 unsigned long l;
380 u32 *prop;
381
382 DBG("Looking for initrd properties... ");
383
384 prop = of_get_flat_dt_prop(node, "linux,initrd-start", &l);
385 if (prop) {
386 initrd_start = (unsigned long)__va(of_read_ulong(prop, l/4));
387
388 prop = of_get_flat_dt_prop(node, "linux,initrd-end", &l);
389 if (prop) {
390 initrd_end = (unsigned long)
391 __va(of_read_ulong(prop, l/4));
392 initrd_below_start_ok = 1;
393 } else {
394 initrd_start = 0;
395 }
396 }
397
398 DBG("initrd_start=0x%lx initrd_end=0x%lx\n", initrd_start, initrd_end);
399}
400#else
401static inline void early_init_dt_check_for_initrd(unsigned long node)
402{
403}
404#endif /* CONFIG_BLK_DEV_INITRD */
405
406static int __init early_init_dt_scan_chosen(unsigned long node, 376static int __init early_init_dt_scan_chosen(unsigned long node,
407 const char *uname, int depth, void *data) 377 const char *uname, int depth, void *data)
408{ 378{