git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: Loongson: Fix find_vga_mem_init()
[safe/jmp/linux-2.6]
/
arch
/
mips
/
loongson
/
common
/
mem.c
diff --git
a/arch/mips/loongson/common/mem.c
b/arch/mips/loongson/common/mem.c
index
ec2f796
..
b5f4025
100644
(file)
--- a/
arch/mips/loongson/common/mem.c
+++ b/
arch/mips/loongson/common/mem.c
@@
-96,7
+96,7
@@
static int __init find_vga_mem_init(void)
return 0;
for_each_pci_dev(dev) {
- if ((dev->class >>
8) == PCI_CLASS_DISPLAY_VGA
) {
+ if ((dev->class >>
16) == PCI_BASE_CLASS_DISPLAY
) {
for (idx = 0; idx < PCI_NUM_RESOURCES; idx++) {
r = &dev->resource[idx];
if (!r->start && r->end)