diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 06:12:46 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 03:43:34 -0400 |
commit | bb6d822ec546603bca01f7ba17c52f0f4f80e329 (patch) | |
tree | d7edf6819c03a3195dccd33e9bc242553c00f28a /drivers/gpu/drm/i810 | |
parent | d4f68a7506e924e28a9153933076628002ba8bbc (diff) |
drm: move drm-lock API to drm_legacy.h
Same as the other legacy APIs, most of this is internal, so prefix it with
drm_legacy_* and move into drm_legacy.h.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i810')
-rw-r--r-- | drivers/gpu/drm/i810/i810_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index bae897de9468..c97e2ff6a35a 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c | |||
@@ -1215,9 +1215,9 @@ void i810_driver_preclose(struct drm_device *dev, struct drm_file *file_priv) | |||
1215 | } | 1215 | } |
1216 | 1216 | ||
1217 | if (file_priv->master && file_priv->master->lock.hw_lock) { | 1217 | if (file_priv->master && file_priv->master->lock.hw_lock) { |
1218 | drm_idlelock_take(&file_priv->master->lock); | 1218 | drm_legacy_idlelock_take(&file_priv->master->lock); |
1219 | i810_driver_reclaim_buffers(dev, file_priv); | 1219 | i810_driver_reclaim_buffers(dev, file_priv); |
1220 | drm_idlelock_release(&file_priv->master->lock); | 1220 | drm_legacy_idlelock_release(&file_priv->master->lock); |
1221 | } else { | 1221 | } else { |
1222 | /* master disappeared, clean up stuff anyway and hope nothing | 1222 | /* master disappeared, clean up stuff anyway and hope nothing |
1223 | * goes wrong */ | 1223 | * goes wrong */ |