linux-mips
[Top] [All Lists]

[PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init()

To: linux-mips@linux-mips.org
Subject: [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init()
From: Arnaud Patard <apatard@mandriva.com>
Date: Thu, 29 Apr 2010 11:58:47 +0200
Organization: Mandriva
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This patchis patch allows to use all display device for instance
DISPLAY_OTHER like SM501.

From: Richard LIU <richard.liu@st.com>
Signed-off-by: Arnaud Patard <apatard@mandriva.com>
---
---
 arch/mips/loongson/common/mem.c |    2         1 +     1 -     0 !
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/mips/loongson/common/mem.c
===================================================================
--- linux-2.6.orig/arch/mips/loongson/common/mem.c
+++ linux-2.6/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)
<Prev in Thread] Current Thread [Next in Thread>