Commit 1f212dc0 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: only request the PReP-specific resources on PReP systems.

parent ee5c0c4c
...@@ -807,13 +807,15 @@ prep_map_io(void) ...@@ -807,13 +807,15 @@ prep_map_io(void)
static int __init static int __init
prep_request_io(void) prep_request_io(void)
{ {
if (_machine == _MACH_prep) {
#ifdef CONFIG_NVRAM #ifdef CONFIG_NVRAM
request_region(PREP_NVRAM_AS0, 0x8, "nvram"); request_region(PREP_NVRAM_AS0, 0x8, "nvram");
#endif #endif
request_region(0x00,0x20,"dma1"); request_region(0x00,0x20,"dma1");
request_region(0x40,0x20,"timer"); request_region(0x40,0x20,"timer");
request_region(0x80,0x10,"dma page reg"); request_region(0x80,0x10,"dma page reg");
request_region(0xc0,0x20,"dma2"); request_region(0xc0,0x20,"dma2");
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment