aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/cg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/cg3.c')
-rw-r--r--drivers/video/cg3.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/video/cg3.c b/drivers/video/cg3.c
index c5e7612ff876..9f63507ded37 100644
--- a/drivers/video/cg3.c
+++ b/drivers/video/cg3.c
@@ -243,8 +243,8 @@ static int cg3_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
243 * Initialisation 243 * Initialisation
244 */ 244 */
245 245
246static void __devinit cg3_init_fix(struct fb_info *info, int linebytes, 246static void cg3_init_fix(struct fb_info *info, int linebytes,
247 struct device_node *dp) 247 struct device_node *dp)
248{ 248{
249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); 249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id));
250 250
@@ -256,8 +256,8 @@ static void __devinit cg3_init_fix(struct fb_info *info, int linebytes,
256 info->fix.accel = FB_ACCEL_SUN_CGTHREE; 256 info->fix.accel = FB_ACCEL_SUN_CGTHREE;
257} 257}
258 258
259static void __devinit cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var, 259static void cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var,
260 struct device_node *dp) 260 struct device_node *dp)
261{ 261{
262 const char *params; 262 const char *params;
263 char *p; 263 char *p;
@@ -279,36 +279,36 @@ static void __devinit cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var,
279 } 279 }
280} 280}
281 281
282static u8 cg3regvals_66hz[] __devinitdata = { /* 1152 x 900, 66 Hz */ 282static u8 cg3regvals_66hz[] = { /* 1152 x 900, 66 Hz */
283 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14, 283 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14,
284 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24, 284 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24,
285 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01, 285 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
286 0x10, 0x20, 0 286 0x10, 0x20, 0
287}; 287};
288 288
289static u8 cg3regvals_76hz[] __devinitdata = { /* 1152 x 900, 76 Hz */ 289static u8 cg3regvals_76hz[] = { /* 1152 x 900, 76 Hz */
290 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f, 290 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f,
291 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a, 291 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a,
292 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01, 292 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01,
293 0x10, 0x24, 0 293 0x10, 0x24, 0
294}; 294};
295 295
296static u8 cg3regvals_rdi[] __devinitdata = { /* 640 x 480, cgRDI */ 296static u8 cg3regvals_rdi[] = { /* 640 x 480, cgRDI */
297 0x14, 0x70, 0x15, 0x20, 0x16, 0x08, 0x17, 0x10, 297 0x14, 0x70, 0x15, 0x20, 0x16, 0x08, 0x17, 0x10,
298 0x18, 0x06, 0x19, 0x02, 0x1a, 0x31, 0x1b, 0x51, 298 0x18, 0x06, 0x19, 0x02, 0x1a, 0x31, 0x1b, 0x51,
299 0x1c, 0x06, 0x1d, 0x0c, 0x1e, 0xff, 0x1f, 0x01, 299 0x1c, 0x06, 0x1d, 0x0c, 0x1e, 0xff, 0x1f, 0x01,
300 0x10, 0x22, 0 300 0x10, 0x22, 0
301}; 301};
302 302
303static u8 *cg3_regvals[] __devinitdata = { 303static u8 *cg3_regvals[] = {
304 cg3regvals_66hz, cg3regvals_76hz, cg3regvals_rdi 304 cg3regvals_66hz, cg3regvals_76hz, cg3regvals_rdi
305}; 305};
306 306
307static u_char cg3_dacvals[] __devinitdata = { 307static u_char cg3_dacvals[] = {
308 4, 0xff, 5, 0x00, 6, 0x70, 7, 0x00, 0 308 4, 0xff, 5, 0x00, 6, 0x70, 7, 0x00, 0
309}; 309};
310 310
311static int __devinit cg3_do_default_mode(struct cg3_par *par) 311static int cg3_do_default_mode(struct cg3_par *par)
312{ 312{
313 enum cg3_type type; 313 enum cg3_type type;
314 u8 *p; 314 u8 *p;
@@ -346,7 +346,7 @@ static int __devinit cg3_do_default_mode(struct cg3_par *par)
346 return 0; 346 return 0;
347} 347}
348 348
349static int __devinit cg3_probe(struct platform_device *op) 349static int cg3_probe(struct platform_device *op)
350{ 350{
351 struct device_node *dp = op->dev.of_node; 351 struct device_node *dp = op->dev.of_node;
352 struct fb_info *info; 352 struct fb_info *info;
@@ -433,7 +433,7 @@ out_err:
433 return err; 433 return err;
434} 434}
435 435
436static int __devexit cg3_remove(struct platform_device *op) 436static int cg3_remove(struct platform_device *op)
437{ 437{
438 struct fb_info *info = dev_get_drvdata(&op->dev); 438 struct fb_info *info = dev_get_drvdata(&op->dev);
439 struct cg3_par *par = info->par; 439 struct cg3_par *par = info->par;
@@ -469,7 +469,7 @@ static struct platform_driver cg3_driver = {
469 .of_match_table = cg3_match, 469 .of_match_table = cg3_match,
470 }, 470 },
471 .probe = cg3_probe, 471 .probe = cg3_probe,
472 .remove = __devexit_p(cg3_remove), 472 .remove = cg3_remove,
473}; 473};
474 474
475static int __init cg3_init(void) 475static int __init cg3_init(void)