aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tdfx
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-23 15:46:49 +0200
committerDave Airlie <airlied@redhat.com>2014-09-24 11:43:07 +1000
commitbfbf3c851ce53b914fe98d60ea3fe3fc1ab75b96 (patch)
tree789fa903b1dfd94ffb95a5546830cef74025b622 /drivers/gpu/drm/tdfx
parentdrm/gem: Don't call drm_mmap from drm_gem_mmap (diff)
downloadlinux-dev-bfbf3c851ce53b914fe98d60ea3fe3fc1ab75b96.tar.xz
linux-dev-bfbf3c851ce53b914fe98d60ea3fe3fc1ab75b96.zip
drm: move drm_mmap to <drm/drm_legacy.h>
Now that we've removed the copypasted users in gem/ttm we can relegate the legacy buffer mapping support to where it belongs. Also give it the proper drm_legacy_ prefix. While at it statify drm_mmap_locked, somehow I've missed that in my previous header rework. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/tdfx')
-rw-r--r--drivers/gpu/drm/tdfx/tdfx_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c
index df533ff999a4..fab5ebcb0fef 100644
--- a/drivers/gpu/drm/tdfx/tdfx_drv.c
+++ b/drivers/gpu/drm/tdfx/tdfx_drv.c
@@ -36,6 +36,7 @@
#include "tdfx_drv.h"
#include <drm/drm_pciids.h>
+#include <drm/drm_legacy.h>
static struct pci_device_id pciidlist[] = {
tdfx_PCI_IDS
@@ -46,7 +47,7 @@ static const struct file_operations tdfx_driver_fops = {
.open = drm_open,
.release = drm_release,
.unlocked_ioctl = drm_ioctl,
- .mmap = drm_mmap,
+ .mmap = drm_legacy_mmap,
.poll = drm_poll,
#ifdef CONFIG_COMPAT
.compat_ioctl = drm_compat_ioctl,