Skip to contentSkip to conversation

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

PATCH In review Arnaud Patard 2 participants 2 messages Apr 29, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

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

This patchis patch allows to use all display device for instance DISPLAY_OTHER like SM501.

From: Richard LIU <[email protected]>

---

---
arch/mips/loongson/common/mem.c | 2 1 + 1 - 0 !

 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/loongson/common/mem.c +1 -1
Index: 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)
#1 lore raw
Quoted 7 lines · Arnaud Patard

Date: Thu, 29 Apr 2010 11:58:47 +0200
From: Arnaud Patard <[email protected]>
To: [email protected]
Subject: [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init()
Content-Type: multipart/mixed; boundary="=-=-="

Quoted 5 lines

This patchis patch allows to use all display device for instance DISPLAY_OTHER like SM501.

From: Richard LIU <[email protected]>

Applied - but:

o A From line to override the author derived from the email headers MUST be the first line of an email or git-am will ignore it. No, editing the commit messages doesn't help. I have to edit the raw mailbody and blody MIME attachments aren't makeing that any easier.
o Signed-off-by: line for the author missing.

Thanks,

Ralf