diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 785fd9d7b386..0471e843b6c5 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -395,43 +395,6 @@ static void __init initialize_cache_info(void) | |||
395 | DBG(" <- initialize_cache_info()\n"); | 395 | DBG(" <- initialize_cache_info()\n"); |
396 | } | 396 | } |
397 | 397 | ||
398 | static void __init check_for_initrd(void) | ||
399 | { | ||
400 | #ifdef CONFIG_BLK_DEV_INITRD | ||
401 | u64 *prop; | ||
402 | |||
403 | DBG(" -> check_for_initrd()\n"); | ||
404 | |||
405 | if (of_chosen) { | ||
406 | prop = (u64 *)get_property(of_chosen, | ||
407 | "linux,initrd-start", NULL); | ||
408 | if (prop != NULL) { | ||
409 | initrd_start = (unsigned long)__va(*prop); | ||
410 | prop = (u64 *)get_property(of_chosen, | ||
411 | "linux,initrd-end", NULL); | ||
412 | if (prop != NULL) { | ||
413 | initrd_end = (unsigned long)__va(*prop); | ||
414 | initrd_below_start_ok = 1; | ||
415 | } else | ||
416 | initrd_start = 0; | ||
417 | } | ||
418 | } | ||
419 | |||
420 | /* If we were passed an initrd, set the ROOT_DEV properly if the values | ||
421 | * look sensible. If not, clear initrd reference. | ||
422 | */ | ||
423 | if (initrd_start >= KERNELBASE && initrd_end >= KERNELBASE && | ||
424 | initrd_end > initrd_start) | ||
425 | ROOT_DEV = Root_RAM0; | ||
426 | else | ||
427 | initrd_start = initrd_end = 0; | ||
428 | |||
429 | if (initrd_start) | ||
430 | printk("Found initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); | ||
431 | |||
432 | DBG(" <- check_for_initrd()\n"); | ||
433 | #endif /* CONFIG_BLK_DEV_INITRD */ | ||
434 | } | ||
435 | 398 | ||
436 | /* | 399 | /* |
437 | * Do some initial setup of the system. The parameters are those which | 400 | * Do some initial setup of the system. The parameters are those which |