diff options
Diffstat (limited to 'arch/powerpc/platforms/chrp/setup.c')
-rw-r--r-- | arch/powerpc/platforms/chrp/setup.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index 9c718bb2305e..23a201718704 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c | |||
@@ -292,6 +292,10 @@ void __init chrp_setup_arch(void) | |||
292 | 292 | ||
293 | pci_create_OF_bus_map(); | 293 | pci_create_OF_bus_map(); |
294 | 294 | ||
295 | #ifdef CONFIG_SMP | ||
296 | smp_ops = &chrp_smp_ops; | ||
297 | #endif /* CONFIG_SMP */ | ||
298 | |||
295 | /* | 299 | /* |
296 | * Print the banner, then scroll down so boot progress | 300 | * Print the banner, then scroll down so boot progress |
297 | * can be printed. -- Cort | 301 | * can be printed. -- Cort |
@@ -506,8 +510,15 @@ chrp_init2(void) | |||
506 | ppc_md.progress(" Have fun! ", 0x7777); | 510 | ppc_md.progress(" Have fun! ", 0x7777); |
507 | } | 511 | } |
508 | 512 | ||
509 | void __init chrp_init(void) | 513 | static int __init chrp_probe(void) |
510 | { | 514 | { |
515 | char *dtype = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
516 | "device_type", NULL); | ||
517 | if (dtype == NULL) | ||
518 | return 0; | ||
519 | if (strcmp(dtype, "chrp")) | ||
520 | return 0; | ||
521 | |||
511 | ISA_DMA_THRESHOLD = ~0L; | 522 | ISA_DMA_THRESHOLD = ~0L; |
512 | DMA_MODE_READ = 0x44; | 523 | DMA_MODE_READ = 0x44; |
513 | DMA_MODE_WRITE = 0x48; | 524 | DMA_MODE_WRITE = 0x48; |