diff options
Diffstat (limited to 'arch/blackfin/mm/init.c')
-rw-r--r-- | arch/blackfin/mm/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c index e97ea8fc8dc4..9f007cace6e6 100644 --- a/arch/blackfin/mm/init.c +++ b/arch/blackfin/mm/init.c | |||
@@ -184,13 +184,15 @@ static __init void free_init_pages(const char *what, unsigned long begin, unsign | |||
184 | #ifdef CONFIG_BLK_DEV_INITRD | 184 | #ifdef CONFIG_BLK_DEV_INITRD |
185 | void __init free_initrd_mem(unsigned long start, unsigned long end) | 185 | void __init free_initrd_mem(unsigned long start, unsigned long end) |
186 | { | 186 | { |
187 | #ifndef CONFIG_MPU | ||
187 | free_init_pages("initrd memory", start, end); | 188 | free_init_pages("initrd memory", start, end); |
189 | #endif | ||
188 | } | 190 | } |
189 | #endif | 191 | #endif |
190 | 192 | ||
191 | void __init free_initmem(void) | 193 | void __init free_initmem(void) |
192 | { | 194 | { |
193 | #ifdef CONFIG_RAMKERNEL | 195 | #if defined CONFIG_RAMKERNEL && !defined CONFIG_MPU |
194 | free_init_pages("unused kernel memory", | 196 | free_init_pages("unused kernel memory", |
195 | (unsigned long)(&__init_begin), | 197 | (unsigned long)(&__init_begin), |
196 | (unsigned long)(&__init_end)); | 198 | (unsigned long)(&__init_end)); |