summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-04-23 23:42:29 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-04-23 23:42:29 +0000
commite15b0b6a1b95e4145363b15e1a581ee230b2f9a2 (patch)
tree8f596ee2d77469d27e017bdcea6bc55628d3d738 /linux-core/drm_drv.c
parent23a76c37594d3d423963c7b8610b64367e3ff9d8 (diff)
Install dummy/noop read & poll fops unless the driver has replacements.
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 036cee35..dad961f8 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -84,6 +84,12 @@
#ifndef __HAVE_SG
#define __HAVE_SG 0
#endif
+#ifndef __HAVE_DRIVER_FOPS_READ
+#define __HAVE_DRIVER_FOPS_READ 0
+#endif
+#ifndef __HAVE_DRIVER_FOPS_POLL
+#define __HAVE_DRIVER_FOPS_POLL 0
+#endif
#ifndef DRIVER_PREINIT
#define DRIVER_PREINIT()
@@ -119,6 +125,8 @@ static struct file_operations DRM(fops) = { \
.ioctl = DRM(ioctl), \
.mmap = DRM(mmap), \
.fasync = DRM(fasync), \
+ .poll = DRM(poll), \
+ .read = DRM(read), \
}
#endif