Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294219
b: refs/heads/master
c: ec0d22e
h: refs/heads/master
i:
  294217: 9a40e42
  294215: 5d7122f
v: v3
  • Loading branch information
Wang YanQing authored and Florian Tobias Schandinat committed Mar 8, 2012
1 parent e42c9a6 commit d34c0d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e71ff6f265c80b6f04f1d16470b5afa58f0b4648
refs/heads/master: ec0d22e4d563e7cce9f6678e2000900755c2989d
12 changes: 10 additions & 2 deletions trunk/drivers/video/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <video/uvesafb.h>
#ifdef CONFIG_X86
#include <video/vga.h>
#include <linux/pci.h>
#endif
#ifdef CONFIG_MTRR
#include <asm/mtrr.h>
Expand Down Expand Up @@ -815,8 +816,15 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info)
par->pmi_setpal = pmi_setpal;
par->ypan = ypan;

if (par->pmi_setpal || par->ypan)
uvesafb_vbe_getpmi(task, par);
if (par->pmi_setpal || par->ypan) {
if (pcibios_enabled) {
uvesafb_vbe_getpmi(task, par);
} else {
par->pmi_setpal = par->ypan = 0;
printk(KERN_WARNING "uvesafb: PCI BIOS area is NX."
"Can't use protected mode interface\n");
}
}
#else
/* The protected mode interface is not available on non-x86. */
par->pmi_setpal = par->ypan = 0;
Expand Down

0 comments on commit d34c0d5

Please sign in to comment.