drm/radeon: use prime helpers
authorAaron Plattner <aplattner@nvidia.com>
Tue, 15 Jan 2013 20:47:44 +0000 (20:47 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 03:48:43 +0000 (13:48 +1000)
commit1e6d17a5df848cf8e483b689c6295776e9d6d997
treef78ba522666ac7a2284aca98417ebfbb9f42c538
parentab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6
drm/radeon: use prime helpers

Simplify the Radeon prime implementation by using the default behavior provided
by drm_gem_prime_import and drm_gem_prime_export.

v2:
- Rename functions to radeon_gem_prime_get_sg_table and
  radeon_gem_prime_import_sg_table.
- Delete the now-unused vmapping_count variable.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_prime.c