From: Richard LIU Date: Thu, 29 Apr 2010 09:58:47 +0000 (+0200) Subject: MIPS: Loongson: Fix find_vga_mem_init() X-Git-Tag: v3.12-rc1~10431^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff40ad72addb448c1285181820597a17685ee69a;p=kernel%2Fkernel-generic.git 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 To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1160/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/loongson/common/mem.c b/arch/mips/loongson/common/mem.c index ec2f796..b5f4025 100644 --- 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)