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

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

parent ee5c0c4c
...@@ -807,6 +807,7 @@ prep_map_io(void) ...@@ -807,6 +807,7 @@ 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
...@@ -814,6 +815,7 @@ prep_request_io(void) ...@@ -814,6 +815,7 @@ prep_request_io(void)
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