summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 23:14:20 +0800
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 21:48:17 +0800
commit1c9c20f60230bd5a6195d41f9dd2dfa60874b1da (patch)
tree611cf33d3d7e4f19b18be7a11b303d3f30ced75f /drivers/gpu/drm/vmwgfx
parent4e5df7ca3091a846b65f2a940a68506790a62d6a (diff)
downloadlinux-1c9c20f60230bd5a6195d41f9dd2dfa60874b1da.tar.gz
linux-1c9c20f60230bd5a6195d41f9dd2dfa60874b1da.tar.bz2
linux-1c9c20f60230bd5a6195d41f9dd2dfa60874b1da.zip
drm: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
index f4e7763a7694..51c9ba5cd2fb 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
@@ -136,10 +136,10 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
if (likely(page_virtual != NULL)) {
desc_virtual->ppn = page_to_pfn(page);
- kunmap_atomic(page_virtual, KM_USER0);
+ kunmap_atomic(page_virtual);
}
- page_virtual = kmap_atomic(page, KM_USER0);
+ page_virtual = kmap_atomic(page);
desc_virtual = page_virtual - 1;
prev_pfn = ~(0UL);
@@ -169,7 +169,7 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
}
if (likely(page_virtual != NULL))
- kunmap_atomic(page_virtual, KM_USER0);
+ kunmap_atomic(page_virtual);
return 0;
out_err: