diff options
Diffstat (limited to 'drivers/gpu/drm/i810/i810_drv.c')
-rw-r--r-- | drivers/gpu/drm/i810/i810_drv.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c index d4266bdf6fb4..053f1ee58393 100644 --- a/drivers/gpu/drm/i810/i810_drv.c +++ b/drivers/gpu/drm/i810/i810_drv.c | |||
@@ -43,6 +43,17 @@ static struct pci_device_id pciidlist[] = { | |||
43 | i810_PCI_IDS | 43 | i810_PCI_IDS |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static const struct file_operations i810_driver_fops = { | ||
47 | .owner = THIS_MODULE, | ||
48 | .open = drm_open, | ||
49 | .release = drm_release, | ||
50 | .unlocked_ioctl = drm_ioctl, | ||
51 | .mmap = drm_mmap, | ||
52 | .poll = drm_poll, | ||
53 | .fasync = drm_fasync, | ||
54 | .llseek = noop_llseek, | ||
55 | }; | ||
56 | |||
46 | static struct drm_driver driver = { | 57 | static struct drm_driver driver = { |
47 | .driver_features = | 58 | .driver_features = |
48 | DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | DRIVER_USE_MTRR | | 59 | DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | DRIVER_USE_MTRR | |
@@ -52,20 +63,9 @@ static struct drm_driver driver = { | |||
52 | .lastclose = i810_driver_lastclose, | 63 | .lastclose = i810_driver_lastclose, |
53 | .preclose = i810_driver_preclose, | 64 | .preclose = i810_driver_preclose, |
54 | .device_is_agp = i810_driver_device_is_agp, | 65 | .device_is_agp = i810_driver_device_is_agp, |
55 | .reclaim_buffers_locked = i810_driver_reclaim_buffers_locked, | ||
56 | .dma_quiescent = i810_driver_dma_quiescent, | 66 | .dma_quiescent = i810_driver_dma_quiescent, |
57 | .ioctls = i810_ioctls, | 67 | .ioctls = i810_ioctls, |
58 | .fops = { | 68 | .fops = &i810_driver_fops, |
59 | .owner = THIS_MODULE, | ||
60 | .open = drm_open, | ||
61 | .release = drm_release, | ||
62 | .unlocked_ioctl = drm_ioctl, | ||
63 | .mmap = drm_mmap, | ||
64 | .poll = drm_poll, | ||
65 | .fasync = drm_fasync, | ||
66 | .llseek = noop_llseek, | ||
67 | }, | ||
68 | |||
69 | .name = DRIVER_NAME, | 69 | .name = DRIVER_NAME, |
70 | .desc = DRIVER_DESC, | 70 | .desc = DRIVER_DESC, |
71 | .date = DRIVER_DATE, | 71 | .date = DRIVER_DATE, |