aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tdfx/tdfx_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/tdfx/tdfx_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/tdfx/tdfx_drv.c')
-rw-r--r--drivers/gpu/drm/tdfx/tdfx_drv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c
index ec5a43e65722..8bf98810a8d6 100644
--- a/drivers/gpu/drm/tdfx/tdfx_drv.c
+++ b/drivers/gpu/drm/tdfx/tdfx_drv.c
@@ -42,8 +42,6 @@ static struct pci_device_id pciidlist[] = {
42static struct drm_driver driver = { 42static struct drm_driver driver = {
43 .driver_features = DRIVER_USE_MTRR, 43 .driver_features = DRIVER_USE_MTRR,
44 .reclaim_buffers = drm_core_reclaim_buffers, 44 .reclaim_buffers = drm_core_reclaim_buffers,
45 .get_map_ofs = drm_core_get_map_ofs,
46 .get_reg_ofs = drm_core_get_reg_ofs,
47 .fops = { 45 .fops = {
48 .owner = THIS_MODULE, 46 .owner = THIS_MODULE,
49 .open = drm_open, 47 .open = drm_open,
@@ -52,10 +50,7 @@ static struct drm_driver driver = {
52 .mmap = drm_mmap, 50 .mmap = drm_mmap,
53 .poll = drm_poll, 51 .poll = drm_poll,
54 .fasync = drm_fasync, 52 .fasync = drm_fasync,
55 }, 53 .llseek = noop_llseek,
56 .pci_driver = {
57 .name = DRIVER_NAME,
58 .id_table = pciidlist,
59 }, 54 },
60 55
61 .name = DRIVER_NAME, 56 .name = DRIVER_NAME,
@@ -66,14 +61,19 @@ static struct drm_driver driver = {
66 .patchlevel = DRIVER_PATCHLEVEL, 61 .patchlevel = DRIVER_PATCHLEVEL,
67}; 62};
68 63
64static struct pci_driver tdfx_pci_driver = {
65 .name = DRIVER_NAME,
66 .id_table = pciidlist,
67};
68
69static int __init tdfx_init(void) 69static int __init tdfx_init(void)
70{ 70{
71 return drm_init(&driver); 71 return drm_pci_init(&driver, &tdfx_pci_driver);
72} 72}
73 73
74static void __exit tdfx_exit(void) 74static void __exit tdfx_exit(void)
75{ 75{
76 drm_exit(&driver); 76 drm_pci_exit(&driver, &tdfx_pci_driver);
77} 77}
78 78
79module_init(tdfx_init); 79module_init(tdfx_init);