diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 19:43:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 19:43:00 +0000 |
commit | fbc6b140a51f4faa9b995eb965b6e69ebb541f3f (patch) | |
tree | 4f317d291370cf0af876f446896c66a3a503be97 /target/linux/x86-2.4/patches/003-mgeode-pci.patch | |
parent | d9e36255b00d6bbcdedeba7ab9e22f37f8ed79bc (diff) | |
download | master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.tar.gz master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.tar.bz2 master-187ad058-fbc6b140a51f4faa9b995eb965b6e69ebb541f3f.zip |
large target/linux cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2877 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86-2.4/patches/003-mgeode-pci.patch')
-rw-r--r-- | target/linux/x86-2.4/patches/003-mgeode-pci.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/x86-2.4/patches/003-mgeode-pci.patch b/target/linux/x86-2.4/patches/003-mgeode-pci.patch new file mode 100644 index 0000000000..eb6594ec84 --- /dev/null +++ b/target/linux/x86-2.4/patches/003-mgeode-pci.patch @@ -0,0 +1,14 @@ +diff -Nur linux-2.4.29/drivers/pci/pci.c linux-2.4.29_geode/drivers/pci/pci.c +--- linux-2.4.29/drivers/pci/pci.c Wed Nov 17 12:54:21 2004 ++++ linux-2.4.29_geode/drivers/pci/pci.c Tue Feb 15 23:41:54 2005 +@@ -1486,6 +1486,10 @@ + for (func = 0; func < 8; func++, temp->devfn++) { + if (pci_read_config_byte(temp, PCI_HEADER_TYPE, &hdr_type)) + continue; ++#ifdef CONFIG_MGEODE ++ if (hdr_type & 0x7f > PCI_HEADER_TYPE_CARDBUS) ++ continue; ++#endif + temp->hdr_type = hdr_type & 0x7f; + + dev = pci_scan_device(temp); |