aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/savage/savage_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/savage/savage_drv.c')
-rw-r--r--drivers/gpu/drm/savage/savage_drv.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/gpu/drm/savage/savage_drv.c b/drivers/gpu/drm/savage/savage_drv.c
index 5468d1cd3296..89afe0b83643 100644
--- a/drivers/gpu/drm/savage/savage_drv.c
+++ b/drivers/gpu/drm/savage/savage_drv.c
@@ -35,6 +35,17 @@ static struct pci_device_id pciidlist[] = {
35 savage_PCI_IDS 35 savage_PCI_IDS
36}; 36};
37 37
38static const struct file_operations savage_driver_fops = {
39 .owner = THIS_MODULE,
40 .open = drm_open,
41 .release = drm_release,
42 .unlocked_ioctl = drm_ioctl,
43 .mmap = drm_mmap,
44 .poll = drm_poll,
45 .fasync = drm_fasync,
46 .llseek = noop_llseek,
47};
48
38static struct drm_driver driver = { 49static struct drm_driver driver = {
39 .driver_features = 50 .driver_features =
40 DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_DMA | DRIVER_PCI_DMA, 51 DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_DMA | DRIVER_PCI_DMA,
@@ -46,17 +57,7 @@ static struct drm_driver driver = {
46 .reclaim_buffers = savage_reclaim_buffers, 57 .reclaim_buffers = savage_reclaim_buffers,
47 .ioctls = savage_ioctls, 58 .ioctls = savage_ioctls,
48 .dma_ioctl = savage_bci_buffers, 59 .dma_ioctl = savage_bci_buffers,
49 .fops = { 60 .fops = &savage_driver_fops,
50 .owner = THIS_MODULE,
51 .open = drm_open,
52 .release = drm_release,
53 .unlocked_ioctl = drm_ioctl,
54 .mmap = drm_mmap,
55 .poll = drm_poll,
56 .fasync = drm_fasync,
57 .llseek = noop_llseek,
58 },
59
60 .name = DRIVER_NAME, 61 .name = DRIVER_NAME,
61 .desc = DRIVER_DESC, 62 .desc = DRIVER_DESC,
62 .date = DRIVER_DATE, 63 .date = DRIVER_DATE,