OSDN Git Service

drm/qxl: use DEFINE_DRM_GEM_FOPS()
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Oct 2019 13:26:37 +0000 (15:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Oct 2019 09:34:02 +0000 (11:34 +0200)
We have no qxl-specific fops any more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191017132638.9693-5-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_drv.c

index 6546463..1d601f5 100644 (file)
@@ -150,15 +150,7 @@ qxl_pci_remove(struct pci_dev *pdev)
        drm_dev_put(dev);
 }
 
-static const struct file_operations qxl_fops = {
-       .owner = THIS_MODULE,
-       .open = drm_open,
-       .release = drm_release,
-       .unlocked_ioctl = drm_ioctl,
-       .poll = drm_poll,
-       .read = drm_read,
-       .mmap = drm_gem_mmap,
-};
+DEFINE_DRM_GEM_FOPS(qxl_fops);
 
 static int qxl_drm_freeze(struct drm_device *dev)
 {