From: Arnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
Subject: [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init()
Date: Thu, 29 Apr 2010 11:58:47 +0200 [thread overview]
Message-ID: <m3wrvqwpew.fsf@anduin.mandriva.com> (raw)
[-- 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)
next reply other threads:[~2010-04-29 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 9:58 Arnaud Patard [this message]
2010-04-29 16:28 ` [PATCH] arch/mips/loongson/common/mem.c: fix find_vga_mem_init() Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3wrvqwpew.fsf@anduin.mandriva.com \
--to=apatard@mandriva.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox