diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-10 08:11:56 -0400 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-07-23 06:13:17 -0400 |
commit | bd0c0ceef6b1e7cb8c5dc1c9c6d168bae6bccaa0 (patch) | |
tree | 93d5ffa24391262da1031ee43a8df8d521bfcbe1 /drivers/gpu/drm/drm_drv.c | |
parent | da5cbe361c55fe17ef94d2587991997f81f8c4cb (diff) |
drm: move drm_getsarea into drm_bufs.c
It fiddles the sarea out of the maps which are also handled in
drm_bufs.c
With this drm_drv.c is a notch more legacy free.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 5993bfc8dcb9..36103d1660d1 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
@@ -485,19 +485,4 @@ long drm_ioctl(struct file *filp, | |||
485 | DRM_DEBUG("ret = %d\n", retcode); | 485 | DRM_DEBUG("ret = %d\n", retcode); |
486 | return retcode; | 486 | return retcode; |
487 | } | 487 | } |
488 | |||
489 | EXPORT_SYMBOL(drm_ioctl); | 488 | EXPORT_SYMBOL(drm_ioctl); |
490 | |||
491 | struct drm_local_map *drm_getsarea(struct drm_device *dev) | ||
492 | { | ||
493 | struct drm_map_list *entry; | ||
494 | |||
495 | list_for_each_entry(entry, &dev->maplist, head) { | ||
496 | if (entry->map && entry->map->type == _DRM_SHM && | ||
497 | (entry->map->flags & _DRM_CONTAINS_LOCK)) { | ||
498 | return entry->map; | ||
499 | } | ||
500 | } | ||
501 | return NULL; | ||
502 | } | ||
503 | EXPORT_SYMBOL(drm_getsarea); | ||