projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6d541
)
MIPS: Loongson: Fix find_vga_mem_init()
author
Richard LIU
<
[email protected]
>
Thu, 29 Apr 2010 09:58:47 +0000
(11:58 +0200)
committer
Ralf Baechle
<
[email protected]
>
Fri, 30 Apr 2010 19:52:50 +0000
(20:52 +0100)
This allows to use all display device for instance DISPLAY_OTHER like SM501.
Signed-off-by: Arnaud Patard <
[email protected]
>
To:
[email protected]
Patchwork: http://patchwork.linux-mips.org/patch/1160/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/loongson/common/mem.c
patch
|
blob
|
history
diff --git
a/arch/mips/loongson/common/mem.c
b/arch/mips/loongson/common/mem.c
index ec2f7964a0b0d5c6a6d6f1edfa8e92062c3076aa..b5f402578a87759566e9ecbb58b8df88a94931b8 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)