let ipkg fail when a package file to be installed is not found
[openwrt/staging/wigyori.git] / openwrt / target / linux / x86-2.4 / patches / 003-mgeode-pci.patch
1 diff -Nur linux-2.4.29/drivers/pci/pci.c linux-2.4.29_geode/drivers/pci/pci.c
2 --- linux-2.4.29/drivers/pci/pci.c Wed Nov 17 12:54:21 2004
3 +++ linux-2.4.29_geode/drivers/pci/pci.c Tue Feb 15 23:41:54 2005
4 @@ -1486,6 +1486,10 @@
5 for (func = 0; func < 8; func++, temp->devfn++) {
6 if (pci_read_config_byte(temp, PCI_HEADER_TYPE, &hdr_type))
7 continue;
8 +#ifdef CONFIG_MGEODE
9 + if (hdr_type & 0x7f > PCI_HEADER_TYPE_CARDBUS)
10 + continue;
11 +#endif
12 temp->hdr_type = hdr_type & 0x7f;
13
14 dev = pci_scan_device(temp);