diff options
author | Wang, Yalin <Yalin.Wang@sonymobile.com> | 2015-01-28 13:57:34 +0800 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-01-29 12:37:41 +1000 |
commit | e410055331c2f474872b364dce3d4042418e892b (patch) | |
tree | b1ee0e24726b8da7b5451533fdd20986c01db883 /drivers/char/agp/generic.c | |
parent | b3869b17fd63bacb53ac4db4ff4ba093701e17be (diff) | |
download | linux-rt-e410055331c2f474872b364dce3d4042418e892b.tar.gz |
agp: change agp_free_page_array to use kvfree
Change agp_free_page_array to use kvfree function,
remove the duplicated code.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/agp/generic.c')
-rw-r--r-- | drivers/char/agp/generic.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index 0fbccce1cee9..f002fa5d1887 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -98,17 +98,6 @@ void agp_alloc_page_array(size_t size, struct agp_memory *mem) } EXPORT_SYMBOL(agp_alloc_page_array); -void agp_free_page_array(struct agp_memory *mem) -{ - if (is_vmalloc_addr(mem->pages)) { - vfree(mem->pages); - } else { - kfree(mem->pages); - } -} -EXPORT_SYMBOL(agp_free_page_array); - - static struct agp_memory *agp_create_user_memory(unsigned long num_agp_pages) { struct agp_memory *new; |