Commit 54567d5d authored by Russell King's avatar Russell King

[ARM] Fix acornfb build error.

parent 9a399b0b
...@@ -1246,6 +1246,8 @@ acornfb_detect_monitortype(void) ...@@ -1246,6 +1246,8 @@ acornfb_detect_monitortype(void)
/* /*
* This enables the unused memory to be freed on older Acorn machines. * This enables the unused memory to be freed on older Acorn machines.
* We are freeing memory on behalf of the architecture initialisation
* code here.
*/ */
static inline void static inline void
free_unused_pages(unsigned int virtual_start, unsigned int virtual_end) free_unused_pages(unsigned int virtual_start, unsigned int virtual_end)
...@@ -1268,7 +1270,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end) ...@@ -1268,7 +1270,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end)
*/ */
page = virt_to_page(virtual_start); page = virt_to_page(virtual_start);
ClearPageReserved(page); ClearPageReserved(page);
atomic_set(&page->count, 1); set_page_count(page, 1);
free_page(virtual_start); free_page(virtual_start);
virtual_start += PAGE_SIZE; virtual_start += PAGE_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment