diff options
author | Dave Airlie <airlied@linux.ie> | 2007-05-25 15:04:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-10 21:58:02 -0400 |
commit | da509d7a02cb54938776439edc81f057e39f81e0 (patch) | |
tree | 9610b5c9040393041807014ed20c4497459550b8 /drivers/char/drm/drm_drv.c | |
parent | bd1b331fae2813d9f03ceee649296f02edc0b893 (diff) |
drm: remove DRM_GETSAREA and replace with drm_getsarea function
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_drv.c')
-rw-r--r-- | drivers/char/drm/drm_drv.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c index d7d10f118eaa..30933bb5fd83 100644 --- a/drivers/char/drm/drm_drv.c +++ b/drivers/char/drm/drm_drv.c | |||
@@ -517,3 +517,17 @@ int drm_ioctl(struct inode *inode, struct file *filp, | |||
517 | } | 517 | } |
518 | 518 | ||
519 | EXPORT_SYMBOL(drm_ioctl); | 519 | EXPORT_SYMBOL(drm_ioctl); |
520 | |||
521 | drm_local_map_t *drm_getsarea(struct drm_device *dev) | ||
522 | { | ||
523 | drm_map_list_t *entry; | ||
524 | |||
525 | list_for_each_entry(entry, &dev->maplist->head, head) { | ||
526 | if (entry->map && entry->map->type == _DRM_SHM && | ||
527 | (entry->map->flags & _DRM_CONTAINS_LOCK)) { | ||
528 | return entry->map; | ||
529 | } | ||
530 | } | ||
531 | return NULL; | ||
532 | } | ||
533 | EXPORT_SYMBOL(drm_getsarea); | ||