Skip to content

Commit

Permalink
MIPS: Loongson: Fix find_vga_mem_init()
Browse files Browse the repository at this point in the history
This allows to use all display device for instance DISPLAY_OTHER like SM501.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1160/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Richard LIU authored and ralfbaechle committed Apr 30, 2010
1 parent 1c6d541 commit ff40ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/loongson/common/mem.c
Expand Up @@ -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)
Expand Down

0 comments on commit ff40ad7

Please sign in to comment.