]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/acornfb.c: use __free_reserved_page() to simplify the code
authorXishi Qiu <qiuxishi@huawei.com>
Tue, 5 Nov 2013 05:55:25 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:25 +0000 (16:55 +1100)
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>
drivers/video/acornfb.c

index 7e8346ec9cdc32f1a04e0c493e4d859d71efa189..a305caea58eea717fdffaac4c5364552673ad5ae 100644 (file)
@@ -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;