diff options
Diffstat (limited to 'arch/frv/mm/pgalloc.c')
-rw-r--r-- | arch/frv/mm/pgalloc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c index 1a2e5c8d03a9..66f616fb4860 100644 --- a/arch/frv/mm/pgalloc.c +++ b/arch/frv/mm/pgalloc.c | |||
@@ -28,7 +28,7 @@ pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) | |||
28 | return pte; | 28 | return pte; |
29 | } | 29 | } |
30 | 30 | ||
31 | struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | 31 | pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) |
32 | { | 32 | { |
33 | struct page *page; | 33 | struct page *page; |
34 | 34 | ||
@@ -37,9 +37,11 @@ struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | |||
37 | #else | 37 | #else |
38 | page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); | 38 | page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); |
39 | #endif | 39 | #endif |
40 | if (page) | 40 | if (page) { |
41 | clear_highpage(page); | 41 | clear_highpage(page); |
42 | flush_dcache_page(page); | 42 | pgtable_page_ctor(page); |
43 | flush_dcache_page(page); | ||
44 | } | ||
43 | return page; | 45 | return page; |
44 | } | 46 | } |
45 | 47 | ||