diff options
Diffstat (limited to 'drivers/gpu/drm/via/via_drv.c')
-rw-r--r-- | drivers/gpu/drm/via/via_drv.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c index a83e86d3956c..fb43fd368ce1 100644 --- a/drivers/gpu/drm/via/via_drv.c +++ b/drivers/gpu/drm/via/via_drv.c | |||
@@ -34,6 +34,17 @@ static struct pci_device_id pciidlist[] = { | |||
34 | viadrv_PCI_IDS | 34 | viadrv_PCI_IDS |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static const struct file_operations via_driver_fops = { | ||
38 | .owner = THIS_MODULE, | ||
39 | .open = drm_open, | ||
40 | .release = drm_release, | ||
41 | .unlocked_ioctl = drm_ioctl, | ||
42 | .mmap = drm_mmap, | ||
43 | .poll = drm_poll, | ||
44 | .fasync = drm_fasync, | ||
45 | .llseek = noop_llseek, | ||
46 | }; | ||
47 | |||
37 | static struct drm_driver driver = { | 48 | static struct drm_driver driver = { |
38 | .driver_features = | 49 | .driver_features = |
39 | DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_IRQ | | 50 | DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_IRQ | |
@@ -54,17 +65,7 @@ static struct drm_driver driver = { | |||
54 | .reclaim_buffers_idlelocked = via_reclaim_buffers_locked, | 65 | .reclaim_buffers_idlelocked = via_reclaim_buffers_locked, |
55 | .lastclose = via_lastclose, | 66 | .lastclose = via_lastclose, |
56 | .ioctls = via_ioctls, | 67 | .ioctls = via_ioctls, |
57 | .fops = { | 68 | .fops = &via_driver_fops, |
58 | .owner = THIS_MODULE, | ||
59 | .open = drm_open, | ||
60 | .release = drm_release, | ||
61 | .unlocked_ioctl = drm_ioctl, | ||
62 | .mmap = drm_mmap, | ||
63 | .poll = drm_poll, | ||
64 | .fasync = drm_fasync, | ||
65 | .llseek = noop_llseek, | ||
66 | }, | ||
67 | |||
68 | .name = DRIVER_NAME, | 69 | .name = DRIVER_NAME, |
69 | .desc = DRIVER_DESC, | 70 | .desc = DRIVER_DESC, |
70 | .date = DRIVER_DATE, | 71 | .date = DRIVER_DATE, |