8979bc2f6fd9b4953121cd48d229d641bda782e2
[openwrt/staging/zorun.git] /
1 From 5e8386a65d2b7fd157d2a6e2f9b8ca79011976b7 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Mon, 3 Oct 2016 10:16:03 -0700
4 Subject: [PATCH] staging/vchi: Update for rename of page_cache_release() to
5 put_page().
6
7 Signed-off-by: Eric Anholt <eric@anholt.net>
8 ---
9 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 4 ++--
10 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +-
11 2 files changed, 3 insertions(+), 3 deletions(-)
12
13 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
14 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
15 @@ -438,7 +438,7 @@ create_pagelist(char __user *buf, size_t
16 while (actual_pages > 0)
17 {
18 actual_pages--;
19 - page_cache_release(pages[actual_pages]);
20 + put_page(pages[actual_pages]);
21 }
22 kfree(pagelist);
23 if (actual_pages == 0)
24 @@ -579,7 +579,7 @@ free_pagelist(PAGELIST_T *pagelist, int
25 offset = 0;
26 set_page_dirty(pg);
27 }
28 - page_cache_release(pg);
29 + put_page(pg);
30 }
31 }
32
33 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
34 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
35 @@ -1530,7 +1530,7 @@ dump_phys_mem(void *virt_addr, uint32_t
36 kunmap(page);
37
38 for (page_idx = 0; page_idx < num_pages; page_idx++)
39 - page_cache_release(pages[page_idx]);
40 + put_page(pages[page_idx]);
41
42 kfree(pages);
43 }