aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/kernel/setup.c')
-rw-r--r--arch/ppc/kernel/setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ppc/kernel/setup.c b/arch/ppc/kernel/setup.c
index 77fecfbabe88..1b891b806f3d 100644
--- a/arch/ppc/kernel/setup.c
+++ b/arch/ppc/kernel/setup.c
@@ -83,6 +83,8 @@ extern void pmac_init(unsigned long r3, unsigned long r4,
83 unsigned long r5, unsigned long r6, unsigned long r7); 83 unsigned long r5, unsigned long r6, unsigned long r7);
84extern void chrp_init(unsigned long r3, unsigned long r4, 84extern void chrp_init(unsigned long r3, unsigned long r4,
85 unsigned long r5, unsigned long r6, unsigned long r7); 85 unsigned long r5, unsigned long r6, unsigned long r7);
86
87dev_t boot_dev;
86#endif /* CONFIG_PPC_MULTIPLATFORM */ 88#endif /* CONFIG_PPC_MULTIPLATFORM */
87 89
88#ifdef CONFIG_MAGIC_SYSRQ 90#ifdef CONFIG_MAGIC_SYSRQ
@@ -405,11 +407,13 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
405 _machine = _MACH_prep; 407 _machine = _MACH_prep;
406 } 408 }
407 409
410#ifdef CONFIG_PPC_PREP
408 /* not much more to do here, if prep */ 411 /* not much more to do here, if prep */
409 if (_machine == _MACH_prep) { 412 if (_machine == _MACH_prep) {
410 prep_init(r3, r4, r5, r6, r7); 413 prep_init(r3, r4, r5, r6, r7);
411 return; 414 return;
412 } 415 }
416#endif
413 417
414 /* prom_init has already been called from __start */ 418 /* prom_init has already been called from __start */
415 if (boot_infos) 419 if (boot_infos)
@@ -480,12 +484,16 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
480#endif /* CONFIG_ADB */ 484#endif /* CONFIG_ADB */
481 485
482 switch (_machine) { 486 switch (_machine) {
487#ifdef CONFIG_PPC_PMAC
483 case _MACH_Pmac: 488 case _MACH_Pmac:
484 pmac_init(r3, r4, r5, r6, r7); 489 pmac_init(r3, r4, r5, r6, r7);
485 break; 490 break;
491#endif
492#ifdef CONFIG_PPC_CHRP
486 case _MACH_chrp: 493 case _MACH_chrp:
487 chrp_init(r3, r4, r5, r6, r7); 494 chrp_init(r3, r4, r5, r6, r7);
488 break; 495 break;
496#endif
489 } 497 }
490} 498}
491 499