diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/controlfb.c | 8 | ||||
-rw-r--r-- | drivers/video/igafb.c | 7 | ||||
-rw-r--r-- | drivers/video/platinumfb.c | 5 | ||||
-rw-r--r-- | drivers/video/valkyriefb.c | 4 |
4 files changed, 19 insertions, 5 deletions
diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c index 8cc6c0e2d27a..04c6d928189b 100644 --- a/drivers/video/controlfb.c +++ b/drivers/video/controlfb.c | |||
@@ -415,13 +415,15 @@ static int __init init_control(struct fb_info_control *p) | |||
415 | full = p->total_vram == 0x400000; | 415 | full = p->total_vram == 0x400000; |
416 | 416 | ||
417 | /* Try to pick a video mode out of NVRAM if we have one. */ | 417 | /* Try to pick a video mode out of NVRAM if we have one. */ |
418 | #ifdef CONFIG_NVRAM | ||
418 | if (default_cmode == CMODE_NVRAM){ | 419 | if (default_cmode == CMODE_NVRAM){ |
419 | cmode = nvram_read_byte(NV_CMODE); | 420 | cmode = nvram_read_byte(NV_CMODE); |
420 | if(cmode < CMODE_8 || cmode > CMODE_32) | 421 | if(cmode < CMODE_8 || cmode > CMODE_32) |
421 | cmode = CMODE_8; | 422 | cmode = CMODE_8; |
422 | } else | 423 | } else |
424 | #endif | ||
423 | cmode=default_cmode; | 425 | cmode=default_cmode; |
424 | 426 | #ifdef CONFIG_NVRAM | |
425 | if (default_vmode == VMODE_NVRAM) { | 427 | if (default_vmode == VMODE_NVRAM) { |
426 | vmode = nvram_read_byte(NV_VMODE); | 428 | vmode = nvram_read_byte(NV_VMODE); |
427 | if (vmode < 1 || vmode > VMODE_MAX || | 429 | if (vmode < 1 || vmode > VMODE_MAX || |
@@ -432,7 +434,9 @@ static int __init init_control(struct fb_info_control *p) | |||
432 | if (control_mac_modes[vmode - 1].m[full] < cmode) | 434 | if (control_mac_modes[vmode - 1].m[full] < cmode) |
433 | vmode = VMODE_640_480_60; | 435 | vmode = VMODE_640_480_60; |
434 | } | 436 | } |
435 | } else { | 437 | } else |
438 | #endif | ||
439 | { | ||
436 | vmode=default_vmode; | 440 | vmode=default_vmode; |
437 | if (control_mac_modes[vmode - 1].m[full] < cmode) { | 441 | if (control_mac_modes[vmode - 1].m[full] < cmode) { |
438 | if (cmode > CMODE_8) | 442 | if (cmode > CMODE_8) |
diff --git a/drivers/video/igafb.c b/drivers/video/igafb.c index 67f384f86758..e6df492c22a5 100644 --- a/drivers/video/igafb.c +++ b/drivers/video/igafb.c | |||
@@ -573,3 +573,10 @@ int __init igafb_setup(char *options) | |||
573 | 573 | ||
574 | module_init(igafb_init); | 574 | module_init(igafb_init); |
575 | MODULE_LICENSE("GPL"); | 575 | MODULE_LICENSE("GPL"); |
576 | static struct pci_device_id igafb_pci_tbl[] __devinitdata = { | ||
577 | { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_1682, | ||
578 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | ||
579 | { } | ||
580 | }; | ||
581 | |||
582 | MODULE_DEVICE_TABLE(pci, igafb_pci_tbl); | ||
diff --git a/drivers/video/platinumfb.c b/drivers/video/platinumfb.c index 983be3ec2345..fdb33cd21a27 100644 --- a/drivers/video/platinumfb.c +++ b/drivers/video/platinumfb.c | |||
@@ -339,11 +339,12 @@ static int __devinit platinum_init_fb(struct fb_info *info) | |||
339 | 339 | ||
340 | sense = read_platinum_sense(pinfo); | 340 | sense = read_platinum_sense(pinfo); |
341 | printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); | 341 | printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); |
342 | |||
343 | if (default_vmode == VMODE_NVRAM) { | 342 | if (default_vmode == VMODE_NVRAM) { |
343 | #ifdef CONFIG_NVRAM | ||
344 | default_vmode = nvram_read_byte(NV_VMODE); | 344 | default_vmode = nvram_read_byte(NV_VMODE); |
345 | if (default_vmode <= 0 || default_vmode > VMODE_MAX || | 345 | if (default_vmode <= 0 || default_vmode > VMODE_MAX || |
346 | !platinum_reg_init[default_vmode-1]) | 346 | !platinum_reg_init[default_vmode-1]) |
347 | #endif | ||
347 | default_vmode = VMODE_CHOOSE; | 348 | default_vmode = VMODE_CHOOSE; |
348 | } | 349 | } |
349 | if (default_vmode == VMODE_CHOOSE) { | 350 | if (default_vmode == VMODE_CHOOSE) { |
@@ -351,8 +352,10 @@ static int __devinit platinum_init_fb(struct fb_info *info) | |||
351 | } | 352 | } |
352 | if (default_vmode <= 0 || default_vmode > VMODE_MAX) | 353 | if (default_vmode <= 0 || default_vmode > VMODE_MAX) |
353 | default_vmode = VMODE_640_480_60; | 354 | default_vmode = VMODE_640_480_60; |
355 | #ifdef CONFIG_NVRAM | ||
354 | if (default_cmode == CMODE_NVRAM) | 356 | if (default_cmode == CMODE_NVRAM) |
355 | default_cmode = nvram_read_byte(NV_CMODE); | 357 | default_cmode = nvram_read_byte(NV_CMODE); |
358 | #endif | ||
356 | if (default_cmode < CMODE_8 || default_cmode > CMODE_32) | 359 | if (default_cmode < CMODE_8 || default_cmode > CMODE_32) |
357 | default_cmode = CMODE_8; | 360 | default_cmode = CMODE_8; |
358 | /* | 361 | /* |
diff --git a/drivers/video/valkyriefb.c b/drivers/video/valkyriefb.c index 47f27924a7d7..06fc19a61192 100644 --- a/drivers/video/valkyriefb.c +++ b/drivers/video/valkyriefb.c | |||
@@ -284,7 +284,7 @@ static void __init valkyrie_choose_mode(struct fb_info_valkyrie *p) | |||
284 | printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); | 284 | printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); |
285 | 285 | ||
286 | /* Try to pick a video mode out of NVRAM if we have one. */ | 286 | /* Try to pick a video mode out of NVRAM if we have one. */ |
287 | #ifndef CONFIG_MAC | 287 | #if !defined(CONFIG_MAC) && defined(CONFIG_NVRAM) |
288 | if (default_vmode == VMODE_NVRAM) { | 288 | if (default_vmode == VMODE_NVRAM) { |
289 | default_vmode = nvram_read_byte(NV_VMODE); | 289 | default_vmode = nvram_read_byte(NV_VMODE); |
290 | if (default_vmode <= 0 | 290 | if (default_vmode <= 0 |
@@ -297,7 +297,7 @@ static void __init valkyrie_choose_mode(struct fb_info_valkyrie *p) | |||
297 | default_vmode = mac_map_monitor_sense(p->sense); | 297 | default_vmode = mac_map_monitor_sense(p->sense); |
298 | if (!valkyrie_reg_init[default_vmode - 1]) | 298 | if (!valkyrie_reg_init[default_vmode - 1]) |
299 | default_vmode = VMODE_640_480_67; | 299 | default_vmode = VMODE_640_480_67; |
300 | #ifndef CONFIG_MAC | 300 | #if !defined(CONFIG_MAC) && defined(CONFIG_NVRAM) |
301 | if (default_cmode == CMODE_NVRAM) | 301 | if (default_cmode == CMODE_NVRAM) |
302 | default_cmode = nvram_read_byte(NV_CMODE); | 302 | default_cmode = nvram_read_byte(NV_CMODE); |
303 | #endif | 303 | #endif |