Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Loongson: Fix find_vga_mem_init()

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>

authored by

Richard LIU and committed by
Ralf Baechle
ff40ad72 1c6d541c

+1 -1
+1 -1
arch/mips/loongson/common/mem.c
··· 96 96 return 0; 97 97 98 98 for_each_pci_dev(dev) { 99 - if ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) { 99 + if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) { 100 100 for (idx = 0; idx < PCI_NUM_RESOURCES; idx++) { 101 101 r = &dev->resource[idx]; 102 102 if (!r->start && r->end)