Re: [CFT] PCI probing for cardbus (4/5)

Russell King (rmk@arm.linux.org.uk)
Wed, 5 Mar 2003 00:40:24 +0000


diff -u orig/drivers/pci/setup-bus.c linux/drivers/pci/setup-bus.c
--- orig/drivers/pci/setup-bus.c Tue Feb 25 10:57:49 2003
+++ linux/drivers/pci/setup-bus.c Tue Feb 25 11:17:33 2003
@@ -350,6 +350,7 @@
{
struct pci_bus *b;
int found_vga = pbus_assign_resources_sorted(bus);
+ struct pci_dev *dev;

if (found_vga) {
/* Propagate presence of the VGA to upstream bridges */
@@ -357,9 +358,12 @@
b->resource[0]->flags |= IORESOURCE_BUS_HAS_VGA;
}
}
- list_for_each_entry(b, &bus->children, node) {
- pci_bus_assign_resources(b);
- pci_setup_bridge(b);
+ list_for_each_entry(dev, &bus->devices, bus_list) {
+ b = dev->subordinate;
+ if (b) {
+ pci_bus_assign_resources(b);
+ pci_setup_bridge(b);
+ }
}
}
EXPORT_SYMBOL(pci_bus_assign_resources);

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/