aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/gbefb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/gbefb.c')
-rw-r--r--drivers/video/gbefb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/video/gbefb.c b/drivers/video/gbefb.c
index 3dad31975db8..bda5e3941510 100644
--- a/drivers/video/gbefb.c
+++ b/drivers/video/gbefb.c
@@ -91,10 +91,10 @@ static uint32_t pseudo_palette[16];
91static uint32_t gbe_cmap[256]; 91static uint32_t gbe_cmap[256];
92static int gbe_turned_on; /* 0 turned off, 1 turned on */ 92static int gbe_turned_on; /* 0 turned off, 1 turned on */
93 93
94static char *mode_option __devinitdata = NULL; 94static char *mode_option = NULL;
95 95
96/* default CRT mode */ 96/* default CRT mode */
97static struct fb_var_screeninfo default_var_CRT __devinitdata = { 97static struct fb_var_screeninfo default_var_CRT = {
98 /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ 98 /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */
99 .xres = 640, 99 .xres = 640,
100 .yres = 480, 100 .yres = 480,
@@ -125,7 +125,7 @@ static struct fb_var_screeninfo default_var_CRT __devinitdata = {
125}; 125};
126 126
127/* default LCD mode */ 127/* default LCD mode */
128static struct fb_var_screeninfo default_var_LCD __devinitdata = { 128static struct fb_var_screeninfo default_var_LCD = {
129 /* 1600x1024, 8 bpp */ 129 /* 1600x1024, 8 bpp */
130 .xres = 1600, 130 .xres = 1600,
131 .yres = 1024, 131 .yres = 1024,
@@ -157,7 +157,7 @@ static struct fb_var_screeninfo default_var_LCD __devinitdata = {
157 157
158/* default modedb mode */ 158/* default modedb mode */
159/* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */ 159/* 640x480, 60 Hz, Non-Interlaced (25.172 MHz dotclock) */
160static struct fb_videomode default_mode_CRT __devinitdata = { 160static struct fb_videomode default_mode_CRT = {
161 .refresh = 60, 161 .refresh = 60,
162 .xres = 640, 162 .xres = 640,
163 .yres = 480, 163 .yres = 480,
@@ -172,7 +172,7 @@ static struct fb_videomode default_mode_CRT __devinitdata = {
172 .vmode = FB_VMODE_NONINTERLACED, 172 .vmode = FB_VMODE_NONINTERLACED,
173}; 173};
174/* 1600x1024 SGI flatpanel 1600sw */ 174/* 1600x1024 SGI flatpanel 1600sw */
175static struct fb_videomode default_mode_LCD __devinitdata = { 175static struct fb_videomode default_mode_LCD = {
176 /* 1600x1024, 8 bpp */ 176 /* 1600x1024, 8 bpp */
177 .xres = 1600, 177 .xres = 1600,
178 .yres = 1024, 178 .yres = 1024,
@@ -186,8 +186,8 @@ static struct fb_videomode default_mode_LCD __devinitdata = {
186 .vmode = FB_VMODE_NONINTERLACED, 186 .vmode = FB_VMODE_NONINTERLACED,
187}; 187};
188 188
189static struct fb_videomode *default_mode __devinitdata = &default_mode_CRT; 189static struct fb_videomode *default_mode = &default_mode_CRT;
190static struct fb_var_screeninfo *default_var __devinitdata = &default_var_CRT; 190static struct fb_var_screeninfo *default_var = &default_var_CRT;
191 191
192static int flat_panel_enabled = 0; 192static int flat_panel_enabled = 0;
193 193
@@ -1082,7 +1082,7 @@ static ssize_t gbefb_show_rev(struct device *device, struct device_attribute *at
1082 1082
1083static DEVICE_ATTR(revision, S_IRUGO, gbefb_show_rev, NULL); 1083static DEVICE_ATTR(revision, S_IRUGO, gbefb_show_rev, NULL);
1084 1084
1085static void __devexit gbefb_remove_sysfs(struct device *dev) 1085static void gbefb_remove_sysfs(struct device *dev)
1086{ 1086{
1087 device_remove_file(dev, &dev_attr_size); 1087 device_remove_file(dev, &dev_attr_size);
1088 device_remove_file(dev, &dev_attr_revision); 1088 device_remove_file(dev, &dev_attr_revision);
@@ -1098,7 +1098,7 @@ static void gbefb_create_sysfs(struct device *dev)
1098 * Initialization 1098 * Initialization
1099 */ 1099 */
1100 1100
1101static int __devinit gbefb_setup(char *options) 1101static int gbefb_setup(char *options)
1102{ 1102{
1103 char *this_opt; 1103 char *this_opt;
1104 1104
@@ -1129,7 +1129,7 @@ static int __devinit gbefb_setup(char *options)
1129 return 0; 1129 return 0;
1130} 1130}
1131 1131
1132static int __devinit gbefb_probe(struct platform_device *p_dev) 1132static int gbefb_probe(struct platform_device *p_dev)
1133{ 1133{
1134 int i, ret = 0; 1134 int i, ret = 0;
1135 struct fb_info *info; 1135 struct fb_info *info;
@@ -1254,7 +1254,7 @@ out_release_framebuffer:
1254 return ret; 1254 return ret;
1255} 1255}
1256 1256
1257static int __devexit gbefb_remove(struct platform_device* p_dev) 1257static int gbefb_remove(struct platform_device* p_dev)
1258{ 1258{
1259 struct fb_info *info = platform_get_drvdata(p_dev); 1259 struct fb_info *info = platform_get_drvdata(p_dev);
1260 1260
@@ -1273,7 +1273,7 @@ static int __devexit gbefb_remove(struct platform_device* p_dev)
1273 1273
1274static struct platform_driver gbefb_driver = { 1274static struct platform_driver gbefb_driver = {
1275 .probe = gbefb_probe, 1275 .probe = gbefb_probe,
1276 .remove = __devexit_p(gbefb_remove), 1276 .remove = gbefb_remove,
1277 .driver = { 1277 .driver = {
1278 .name = "gbefb", 1278 .name = "gbefb",
1279 }, 1279 },