diff options
author | Xishi Qiu <qiuxishi@huawei.com> | 2013-11-12 15:07:14 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 12:09:03 +0900 |
commit | 3207d9e72c6227b0a9a2624ae7984b32af5fb288 (patch) | |
tree | 6be6beb76fe5b3c88f5d6eab8cb512b50e28d865 | |
parent | c1ce4b375fa7b76d8b553d4f8d6cc5a09f063691 (diff) | |
download | linux-stable-3207d9e72c6227b0a9a2624ae7984b32af5fb288.tar.gz linux-stable-3207d9e72c6227b0a9a2624ae7984b32af5fb288.tar.bz2 linux-stable-3207d9e72c6227b0a9a2624ae7984b32af5fb288.zip |
drivers/video/acornfb.c: use __free_reserved_page() to simplify the code
Use __free_reserved_page() to simplify the code in the others.
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/acornfb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/acornfb.c b/drivers/video/acornfb.c index 7e8346ec9cdc..a305caea58ee 100644 --- a/drivers/video/acornfb.c +++ b/drivers/video/acornfb.c @@ -949,9 +949,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end) * the page. */ page = virt_to_page(virtual_start); - ClearPageReserved(page); - init_page_count(page); - free_page(virtual_start); + __free_reserved_page(page); virtual_start += PAGE_SIZE; mb_freed += PAGE_SIZE / 1024; |