All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init()
@ 2010-04-29  9:58 Arnaud Patard
  2010-04-29 16:28 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Patard @ 2010-04-29  9:58 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]


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>
---

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: GB49_tlb_uncached_for_all_display_pci_devices.patch --]
[-- Type: text/x-patch, Size: 639 bytes --]

---
 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-29 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29  9:58 [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init() Arnaud Patard
2010-04-29 16:28 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.