lkml.org 
[lkml]   [2003]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [CFT] PCI probing for cardbus (4/5)
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/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.042 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site