diff options
Diffstat (limited to 'drivers/char/drm/i830_drv.c')
-rw-r--r-- | drivers/char/drm/i830_drv.c | 56 |
1 files changed, 15 insertions, 41 deletions
diff --git a/drivers/char/drm/i830_drv.c b/drivers/char/drm/i830_drv.c index acd821e8fe4d..49fd2816de95 100644 --- a/drivers/char/drm/i830_drv.c +++ b/drivers/char/drm/i830_drv.c | |||
@@ -40,37 +40,6 @@ | |||
40 | 40 | ||
41 | #include "drm_pciids.h" | 41 | #include "drm_pciids.h" |
42 | 42 | ||
43 | static int postinit(struct drm_device *dev, unsigned long flags) | ||
44 | { | ||
45 | dev->counters += 4; | ||
46 | dev->types[6] = _DRM_STAT_IRQ; | ||
47 | dev->types[7] = _DRM_STAT_PRIMARY; | ||
48 | dev->types[8] = _DRM_STAT_SECONDARY; | ||
49 | dev->types[9] = _DRM_STAT_DMA; | ||
50 | |||
51 | DRM_INFO("Initialized %s %d.%d.%d %s on minor %d: %s\n", | ||
52 | DRIVER_NAME, | ||
53 | DRIVER_MAJOR, | ||
54 | DRIVER_MINOR, | ||
55 | DRIVER_PATCHLEVEL, | ||
56 | DRIVER_DATE, dev->primary.minor, pci_pretty_name(dev->pdev) | ||
57 | ); | ||
58 | return 0; | ||
59 | } | ||
60 | |||
61 | static int version(drm_version_t * version) | ||
62 | { | ||
63 | int len; | ||
64 | |||
65 | version->version_major = DRIVER_MAJOR; | ||
66 | version->version_minor = DRIVER_MINOR; | ||
67 | version->version_patchlevel = DRIVER_PATCHLEVEL; | ||
68 | DRM_COPY(version->name, DRIVER_NAME); | ||
69 | DRM_COPY(version->date, DRIVER_DATE); | ||
70 | DRM_COPY(version->desc, DRIVER_DESC); | ||
71 | return 0; | ||
72 | } | ||
73 | |||
74 | static struct pci_device_id pciidlist[] = { | 43 | static struct pci_device_id pciidlist[] = { |
75 | i830_PCI_IDS | 44 | i830_PCI_IDS |
76 | }; | 45 | }; |
@@ -83,10 +52,11 @@ static struct drm_driver driver = { | |||
83 | .driver_features |= DRIVER_HAVE_IRQ | DRIVER_SHARED_IRQ, | 52 | .driver_features |= DRIVER_HAVE_IRQ | DRIVER_SHARED_IRQ, |
84 | #endif | 53 | #endif |
85 | .dev_priv_size = sizeof(drm_i830_buf_priv_t), | 54 | .dev_priv_size = sizeof(drm_i830_buf_priv_t), |
86 | .pretakedown = i830_driver_pretakedown, | 55 | .load = i830_driver_load, |
87 | .prerelease = i830_driver_prerelease, | 56 | .lastclose = i830_driver_lastclose, |
57 | .preclose = i830_driver_preclose, | ||
88 | .device_is_agp = i830_driver_device_is_agp, | 58 | .device_is_agp = i830_driver_device_is_agp, |
89 | .release = i830_driver_release, | 59 | .reclaim_buffers_locked = i830_driver_reclaim_buffers_locked, |
90 | .dma_quiescent = i830_driver_dma_quiescent, | 60 | .dma_quiescent = i830_driver_dma_quiescent, |
91 | .reclaim_buffers = i830_reclaim_buffers, | 61 | .reclaim_buffers = i830_reclaim_buffers, |
92 | .get_map_ofs = drm_core_get_map_ofs, | 62 | .get_map_ofs = drm_core_get_map_ofs, |
@@ -97,8 +67,6 @@ static struct drm_driver driver = { | |||
97 | .irq_uninstall = i830_driver_irq_uninstall, | 67 | .irq_uninstall = i830_driver_irq_uninstall, |
98 | .irq_handler = i830_driver_irq_handler, | 68 | .irq_handler = i830_driver_irq_handler, |
99 | #endif | 69 | #endif |
100 | .postinit = postinit, | ||
101 | .version = version, | ||
102 | .ioctls = i830_ioctls, | 70 | .ioctls = i830_ioctls, |
103 | .fops = { | 71 | .fops = { |
104 | .owner = THIS_MODULE, | 72 | .owner = THIS_MODULE, |
@@ -108,13 +76,19 @@ static struct drm_driver driver = { | |||
108 | .mmap = drm_mmap, | 76 | .mmap = drm_mmap, |
109 | .poll = drm_poll, | 77 | .poll = drm_poll, |
110 | .fasync = drm_fasync, | 78 | .fasync = drm_fasync, |
111 | } | 79 | }, |
112 | , | 80 | |
113 | .pci_driver = { | 81 | .pci_driver = { |
114 | .name = DRIVER_NAME, | 82 | .name = DRIVER_NAME, |
115 | .id_table = pciidlist, | 83 | .id_table = pciidlist, |
116 | } | 84 | }, |
117 | 85 | ||
86 | .name = DRIVER_NAME, | ||
87 | .desc = DRIVER_DESC, | ||
88 | .date = DRIVER_DATE, | ||
89 | .major = DRIVER_MAJOR, | ||
90 | .minor = DRIVER_MINOR, | ||
91 | .patchlevel = DRIVER_PATCHLEVEL, | ||
118 | }; | 92 | }; |
119 | 93 | ||
120 | static int __init i830_init(void) | 94 | static int __init i830_init(void) |