aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mga/mga_drv.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/gpu/drm/mga/mga_drv.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/gpu/drm/mga/mga_drv.c')
-rw-r--r--drivers/gpu/drm/mga/mga_drv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c
index 26d0d8ced80d..42d31874edf2 100644
--- a/drivers/gpu/drm/mga/mga_drv.c
+++ b/drivers/gpu/drm/mga/mga_drv.c
@@ -60,8 +60,6 @@ static struct drm_driver driver = {
60 .irq_uninstall = mga_driver_irq_uninstall, 60 .irq_uninstall = mga_driver_irq_uninstall,
61 .irq_handler = mga_driver_irq_handler, 61 .irq_handler = mga_driver_irq_handler,
62 .reclaim_buffers = drm_core_reclaim_buffers, 62 .reclaim_buffers = drm_core_reclaim_buffers,
63 .get_map_ofs = drm_core_get_map_ofs,
64 .get_reg_ofs = drm_core_get_reg_ofs,
65 .ioctls = mga_ioctls, 63 .ioctls = mga_ioctls,
66 .dma_ioctl = mga_dma_buffers, 64 .dma_ioctl = mga_dma_buffers,
67 .fops = { 65 .fops = {
@@ -75,10 +73,7 @@ static struct drm_driver driver = {
75#ifdef CONFIG_COMPAT 73#ifdef CONFIG_COMPAT
76 .compat_ioctl = mga_compat_ioctl, 74 .compat_ioctl = mga_compat_ioctl,
77#endif 75#endif
78 }, 76 .llseek = noop_llseek,
79 .pci_driver = {
80 .name = DRIVER_NAME,
81 .id_table = pciidlist,
82 }, 77 },
83 78
84 .name = DRIVER_NAME, 79 .name = DRIVER_NAME,
@@ -89,15 +84,20 @@ static struct drm_driver driver = {
89 .patchlevel = DRIVER_PATCHLEVEL, 84 .patchlevel = DRIVER_PATCHLEVEL,
90}; 85};
91 86
87static struct pci_driver mga_pci_driver = {
88 .name = DRIVER_NAME,
89 .id_table = pciidlist,
90};
91
92static int __init mga_init(void) 92static int __init mga_init(void)
93{ 93{
94 driver.num_ioctls = mga_max_ioctl; 94 driver.num_ioctls = mga_max_ioctl;
95 return drm_init(&driver); 95 return drm_pci_init(&driver, &mga_pci_driver);
96} 96}
97 97
98static void __exit mga_exit(void) 98static void __exit mga_exit(void)
99{ 99{
100 drm_exit(&driver); 100 drm_pci_exit(&driver, &mga_pci_driver);
101} 101}
102 102
103module_init(mga_init); 103module_init(mga_init);