summaryrefslogtreecommitdiff
path: root/src/VBox/Additions/linux/drm
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2010-12-02 21:16:28 +0100
committerFelix Geyer <debfx-pkg@fobos.de>2010-12-02 21:16:28 +0100
commitd4835ef8bf2b0196ae1887c04e3d57cce840904c (patch)
treed5355506a38f020c0cb682c5a1411f47368d6456 /src/VBox/Additions/linux/drm
parent7f230f4ac2a1b544b47ded0584c22822b9bd65d7 (diff)
downloadvirtualbox-d4835ef8bf2b0196ae1887c04e3d57cce840904c.tar.gz
Imported Upstream version 3.2.12-dfsgupstream/3.2.12-dfsg
Diffstat (limited to 'src/VBox/Additions/linux/drm')
-rw-r--r--src/VBox/Additions/linux/drm/vboxvideo_drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/VBox/Additions/linux/drm/vboxvideo_drm.c b/src/VBox/Additions/linux/drm/vboxvideo_drm.c
index d4a749e65..853b1d549 100644
--- a/src/VBox/Additions/linux/drm/vboxvideo_drm.c
+++ b/src/VBox/Additions/linux/drm/vboxvideo_drm.c
@@ -78,8 +78,11 @@ static struct drm_driver driver = {
/* .driver_features = DRIVER_USE_MTRR, */
.load = vboxvideo_driver_load,
.reclaim_buffers = drm_core_reclaim_buffers,
+ /* As of Linux 2.65.37, always the internal functions are used. */
+#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 37)
.get_map_ofs = drm_core_get_map_ofs,
.get_reg_ofs = drm_core_get_reg_ofs,
+#endif
.fops = {
.owner = THIS_MODULE,
.open = drm_open,