aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/r128/r128_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/r128/r128_drv.c')
-rw-r--r--drivers/gpu/drm/r128/r128_drv.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c
index 4c8796ba6dd..6a5f4395838 100644
--- a/drivers/gpu/drm/r128/r128_drv.c
+++ b/drivers/gpu/drm/r128/r128_drv.c
@@ -42,6 +42,20 @@ static struct pci_device_id pciidlist[] = {
42 r128_PCI_IDS 42 r128_PCI_IDS
43}; 43};
44 44
45static const struct file_operations r128_driver_fops = {
46 .owner = THIS_MODULE,
47 .open = drm_open,
48 .release = drm_release,
49 .unlocked_ioctl = drm_ioctl,
50 .mmap = drm_mmap,
51 .poll = drm_poll,
52 .fasync = drm_fasync,
53#ifdef CONFIG_COMPAT
54 .compat_ioctl = r128_compat_ioctl,
55#endif
56 .llseek = noop_llseek,
57};
58
45static struct drm_driver driver = { 59static struct drm_driver driver = {
46 .driver_features = 60 .driver_features =
47 DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | 61 DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG |
@@ -60,21 +74,7 @@ static struct drm_driver driver = {
60 .reclaim_buffers = drm_core_reclaim_buffers, 74 .reclaim_buffers = drm_core_reclaim_buffers,
61 .ioctls = r128_ioctls, 75 .ioctls = r128_ioctls,
62 .dma_ioctl = r128_cce_buffers, 76 .dma_ioctl = r128_cce_buffers,
63 .fops = { 77 .fops = &r128_driver_fops,
64 .owner = THIS_MODULE,
65 .open = drm_open,
66 .release = drm_release,
67 .unlocked_ioctl = drm_ioctl,
68 .mmap = drm_mmap,
69 .poll = drm_poll,
70 .fasync = drm_fasync,
71#ifdef CONFIG_COMPAT
72 .compat_ioctl = r128_compat_ioctl,
73#endif
74 .llseek = noop_llseek,
75 },
76
77
78 .name = DRIVER_NAME, 78 .name = DRIVER_NAME,
79 .desc = DRIVER_DESC, 79 .desc = DRIVER_DESC,
80 .date = DRIVER_DATE, 80 .date = DRIVER_DATE,