diff options
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/highmem.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/init.c | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/mm/highmem.c b/arch/mips/mm/highmem.c index 675502ada5a2..10dd2af2343b 100644 --- a/arch/mips/mm/highmem.c +++ b/arch/mips/mm/highmem.c | |||
@@ -80,7 +80,6 @@ void __kunmap_atomic(void *kvaddr, enum km_type type) | |||
80 | pagefault_enable(); | 80 | pagefault_enable(); |
81 | } | 81 | } |
82 | 82 | ||
83 | #ifndef CONFIG_LIMITED_DMA | ||
84 | /* | 83 | /* |
85 | * This is the same as kmap_atomic() but can map memory that doesn't | 84 | * This is the same as kmap_atomic() but can map memory that doesn't |
86 | * have a struct page associated with it. | 85 | * have a struct page associated with it. |
@@ -99,7 +98,6 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type) | |||
99 | 98 | ||
100 | return (void*) vaddr; | 99 | return (void*) vaddr; |
101 | } | 100 | } |
102 | #endif /* CONFIG_LIMITED_DMA */ | ||
103 | 101 | ||
104 | struct page *__kmap_atomic_to_page(void *ptr) | 102 | struct page *__kmap_atomic_to_page(void *ptr) |
105 | { | 103 | { |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 2d1c2c024822..4c80528deadd 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -424,9 +424,6 @@ void __init mem_init(void) | |||
424 | continue; | 424 | continue; |
425 | } | 425 | } |
426 | ClearPageReserved(page); | 426 | ClearPageReserved(page); |
427 | #ifdef CONFIG_LIMITED_DMA | ||
428 | set_page_address(page, lowmem_page_address(page)); | ||
429 | #endif | ||
430 | init_page_count(page); | 427 | init_page_count(page); |
431 | __free_page(page); | 428 | __free_page(page); |
432 | totalhigh_pages++; | 429 | totalhigh_pages++; |