summaryrefslogtreecommitdiff
path: root/linux-core/r128_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/r128_drv.c')
-rw-r--r--linux-core/r128_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/r128_drv.c b/linux-core/r128_drv.c
index b6cff4de..a7223280 100644
--- a/linux-core/r128_drv.c
+++ b/linux-core/r128_drv.c
@@ -71,7 +71,7 @@ static struct drm_driver driver = {
.mmap = drm_mmap,
.poll = drm_poll,
.fasync = drm_fasync,
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
.compat_ioctl = r128_compat_ioctl,
#endif
},