Commit 3207d9e72c6227b0a9a2624ae7984b32af5fb288
Committed by
Linus Torvalds
1 parent
c1ce4b375f
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/video/acornfb.c
... | ... | @@ -949,9 +949,7 @@ |
949 | 949 | * the page. |
950 | 950 | */ |
951 | 951 | page = virt_to_page(virtual_start); |
952 | - ClearPageReserved(page); | |
953 | - init_page_count(page); | |
954 | - free_page(virtual_start); | |
952 | + __free_reserved_page(page); | |
955 | 953 | |
956 | 954 | virtual_start += PAGE_SIZE; |
957 | 955 | mb_freed += PAGE_SIZE / 1024; |