aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pm2fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/pm2fb.c')
-rw-r--r--drivers/video/pm2fb.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index df31a24a5026..81354eeab021 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -67,7 +67,7 @@
67 * Driver data 67 * Driver data
68 */ 68 */
69static int hwcursor = 1; 69static int hwcursor = 1;
70static char *mode_option __devinitdata; 70static char *mode_option;
71 71
72/* 72/*
73 * The XFree GLINT driver will (I think to implement hardware cursor 73 * The XFree GLINT driver will (I think to implement hardware cursor
@@ -80,10 +80,10 @@ static char *mode_option __devinitdata;
80 */ 80 */
81static bool lowhsync; 81static bool lowhsync;
82static bool lowvsync; 82static bool lowvsync;
83static bool noaccel __devinitdata; 83static bool noaccel;
84/* mtrr option */ 84/* mtrr option */
85#ifdef CONFIG_MTRR 85#ifdef CONFIG_MTRR
86static bool nomtrr __devinitdata; 86static bool nomtrr;
87#endif 87#endif
88 88
89/* 89/*
@@ -107,7 +107,7 @@ struct pm2fb_par
107 * Here we define the default structs fb_fix_screeninfo and fb_var_screeninfo 107 * Here we define the default structs fb_fix_screeninfo and fb_var_screeninfo
108 * if we don't use modedb. 108 * if we don't use modedb.
109 */ 109 */
110static struct fb_fix_screeninfo pm2fb_fix __devinitdata = { 110static struct fb_fix_screeninfo pm2fb_fix = {
111 .id = "", 111 .id = "",
112 .type = FB_TYPE_PACKED_PIXELS, 112 .type = FB_TYPE_PACKED_PIXELS,
113 .visual = FB_VISUAL_PSEUDOCOLOR, 113 .visual = FB_VISUAL_PSEUDOCOLOR,
@@ -120,7 +120,7 @@ static struct fb_fix_screeninfo pm2fb_fix __devinitdata = {
120/* 120/*
121 * Default video mode. In case the modedb doesn't work. 121 * Default video mode. In case the modedb doesn't work.
122 */ 122 */
123static struct fb_var_screeninfo pm2fb_var __devinitdata = { 123static struct fb_var_screeninfo pm2fb_var = {
124 /* "640x480, 8 bpp @ 60 Hz */ 124 /* "640x480, 8 bpp @ 60 Hz */
125 .xres = 640, 125 .xres = 640,
126 .yres = 480, 126 .yres = 480,
@@ -1515,8 +1515,7 @@ static struct fb_ops pm2fb_ops = {
1515 * @param pdev PCI device. 1515 * @param pdev PCI device.
1516 * @param id PCI device ID. 1516 * @param id PCI device ID.
1517 */ 1517 */
1518static int __devinit pm2fb_probe(struct pci_dev *pdev, 1518static int pm2fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1519 const struct pci_device_id *id)
1520{ 1519{
1521 struct pm2fb_par *default_par; 1520 struct pm2fb_par *default_par;
1522 struct fb_info *info; 1521 struct fb_info *info;
@@ -1727,7 +1726,7 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev,
1727 * 1726 *
1728 * @param pdev PCI device to clean up. 1727 * @param pdev PCI device to clean up.
1729 */ 1728 */
1730static void __devexit pm2fb_remove(struct pci_dev *pdev) 1729static void pm2fb_remove(struct pci_dev *pdev)
1731{ 1730{
1732 struct fb_info *info = pci_get_drvdata(pdev); 1731 struct fb_info *info = pci_get_drvdata(pdev);
1733 struct fb_fix_screeninfo *fix = &info->fix; 1732 struct fb_fix_screeninfo *fix = &info->fix;
@@ -1765,7 +1764,7 @@ static struct pci_driver pm2fb_driver = {
1765 .name = "pm2fb", 1764 .name = "pm2fb",
1766 .id_table = pm2fb_id_table, 1765 .id_table = pm2fb_id_table,
1767 .probe = pm2fb_probe, 1766 .probe = pm2fb_probe,
1768 .remove = __devexit_p(pm2fb_remove), 1767 .remove = pm2fb_remove,
1769}; 1768};
1770 1769
1771MODULE_DEVICE_TABLE(pci, pm2fb_id_table); 1770MODULE_DEVICE_TABLE(pci, pm2fb_id_table);