diff options
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index cf993dbf602e..5d96de40b63f 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -51,10 +51,11 @@ DEFINE_MUTEX(drm_global_mutex); | |||
51 | * Drivers must define the file operations structure that forms the DRM | 51 | * Drivers must define the file operations structure that forms the DRM |
52 | * userspace API entry point, even though most of those operations are | 52 | * userspace API entry point, even though most of those operations are |
53 | * implemented in the DRM core. The mandatory functions are drm_open(), | 53 | * implemented in the DRM core. The mandatory functions are drm_open(), |
54 | * drm_read(), drm_ioctl() and drm_compat_ioctl if CONFIG_COMPAT is enabled. | 54 | * drm_read(), drm_ioctl() and drm_compat_ioctl() if CONFIG_COMPAT is enabled |
55 | * Drivers which implement private ioctls that require 32/64 bit compatibility | 55 | * (note that drm_compat_ioctl will be NULL if CONFIG_COMPAT=n). Drivers which |
56 | * support must provided their onw .compat_ioctl() handler that processes | 56 | * implement private ioctls that require 32/64 bit compatibility support must |
57 | * private ioctls and calls drm_compat_ioctl() for core ioctls. | 57 | * provide their own .compat_ioctl() handler that processes private ioctls and |
58 | * calls drm_compat_ioctl() for core ioctls. | ||
58 | * | 59 | * |
59 | * In addition drm_read() and drm_poll() provide support for DRM events. DRM | 60 | * In addition drm_read() and drm_poll() provide support for DRM events. DRM |
60 | * events are a generic and extensible means to send asynchronous events to | 61 | * events are a generic and extensible means to send asynchronous events to |
@@ -75,9 +76,7 @@ DEFINE_MUTEX(drm_global_mutex); | |||
75 | * .open = drm_open, | 76 | * .open = drm_open, |
76 | * .release = drm_release, | 77 | * .release = drm_release, |
77 | * .unlocked_ioctl = drm_ioctl, | 78 | * .unlocked_ioctl = drm_ioctl, |
78 | * #ifdef CONFIG_COMPAT | 79 | * .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n |
79 | * .compat_ioctl = drm_compat_ioctl, | ||
80 | * #endif | ||
81 | * .poll = drm_poll, | 80 | * .poll = drm_poll, |
82 | * .read = drm_read, | 81 | * .read = drm_read, |
83 | * .llseek = no_llseek, | 82 | * .llseek = no_llseek, |