summaryrefslogtreecommitdiff
path: root/arch/metag/kernel/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/metag/kernel/dma.c')
-rw-r--r--arch/metag/kernel/dma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c
index 8c00dedadc54..db589ad5dbc4 100644
--- a/arch/metag/kernel/dma.c
+++ b/arch/metag/kernel/dma.c
@@ -305,9 +305,7 @@ void dma_free_coherent(struct device *dev, size_t size,
if (pfn_valid(pfn)) {
struct page *page = pfn_to_page(pfn);
- ClearPageReserved(page);
-
- __free_page(page);
+ __free_reserved_page(page);
continue;
}
}