aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pm3fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/pm3fb.c')
-rw-r--r--drivers/video/pm3fb.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c
index 055e527a8e4..7718faa4a73 100644
--- a/drivers/video/pm3fb.c
+++ b/drivers/video/pm3fb.c
@@ -56,12 +56,12 @@
56 * Driver data 56 * Driver data
57 */ 57 */
58static int hwcursor = 1; 58static int hwcursor = 1;
59static char *mode_option __devinitdata; 59static char *mode_option;
60static bool noaccel __devinitdata; 60static bool noaccel;
61 61
62/* mtrr option */ 62/* mtrr option */
63#ifdef CONFIG_MTRR 63#ifdef CONFIG_MTRR
64static bool nomtrr __devinitdata; 64static bool nomtrr;
65#endif 65#endif
66 66
67/* 67/*
@@ -84,7 +84,7 @@ struct pm3_par {
84 * if we don't use modedb. If we do use modedb see pm3fb_init how to use it 84 * if we don't use modedb. If we do use modedb see pm3fb_init how to use it
85 * to get a fb_var_screeninfo. Otherwise define a default var as well. 85 * to get a fb_var_screeninfo. Otherwise define a default var as well.
86 */ 86 */
87static struct fb_fix_screeninfo pm3fb_fix __devinitdata = { 87static struct fb_fix_screeninfo pm3fb_fix = {
88 .id = "Permedia3", 88 .id = "Permedia3",
89 .type = FB_TYPE_PACKED_PIXELS, 89 .type = FB_TYPE_PACKED_PIXELS,
90 .visual = FB_VISUAL_PSEUDOCOLOR, 90 .visual = FB_VISUAL_PSEUDOCOLOR,
@@ -1229,7 +1229,7 @@ static struct fb_ops pm3fb_ops = {
1229 1229
1230/* mmio register are already mapped when this function is called */ 1230/* mmio register are already mapped when this function is called */
1231/* the pm3fb_fix.smem_start is also set */ 1231/* the pm3fb_fix.smem_start is also set */
1232static unsigned long __devinit pm3fb_size_memory(struct pm3_par *par) 1232static unsigned long pm3fb_size_memory(struct pm3_par *par)
1233{ 1233{
1234 unsigned long memsize = 0; 1234 unsigned long memsize = 0;
1235 unsigned long tempBypass, i, temp1, temp2; 1235 unsigned long tempBypass, i, temp1, temp2;
@@ -1314,8 +1314,7 @@ static unsigned long __devinit pm3fb_size_memory(struct pm3_par *par)
1314 return memsize; 1314 return memsize;
1315} 1315}
1316 1316
1317static int __devinit pm3fb_probe(struct pci_dev *dev, 1317static int pm3fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
1318 const struct pci_device_id *ent)
1319{ 1318{
1320 struct fb_info *info; 1319 struct fb_info *info;
1321 struct pm3_par *par; 1320 struct pm3_par *par;
@@ -1469,7 +1468,7 @@ static int __devinit pm3fb_probe(struct pci_dev *dev,
1469 /* 1468 /*
1470 * Cleanup 1469 * Cleanup
1471 */ 1470 */
1472static void __devexit pm3fb_remove(struct pci_dev *dev) 1471static void pm3fb_remove(struct pci_dev *dev)
1473{ 1472{
1474 struct fb_info *info = pci_get_drvdata(dev); 1473 struct fb_info *info = pci_get_drvdata(dev);
1475 1474
@@ -1507,7 +1506,7 @@ static struct pci_driver pm3fb_driver = {
1507 .name = "pm3fb", 1506 .name = "pm3fb",
1508 .id_table = pm3fb_id_table, 1507 .id_table = pm3fb_id_table,
1509 .probe = pm3fb_probe, 1508 .probe = pm3fb_probe,
1510 .remove = __devexit_p(pm3fb_remove), 1509 .remove = pm3fb_remove,
1511}; 1510};
1512 1511
1513MODULE_DEVICE_TABLE(pci, pm3fb_id_table); 1512MODULE_DEVICE_TABLE(pci, pm3fb_id_table);