* [Kernel-janitors] [patch 6/12] pci_dev_b to list_for_each_entry:
@ 2004-08-20 19:00 Domen Puncer
0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2004-08-20 19:00 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
--- kjt2/arch/ppc64/kernel/pSeries_pci.c 2004-08-20 18:58:55.000000000 +0200
+++ kjt2-lfe/arch/ppc64/kernel/pSeries_pci.c 2004-08-20 20:01:09.000000000 +0200
@@ -584,7 +584,7 @@
void __devinit pcibios_fixup_bus(struct pci_bus *bus)
{
struct pci_controller *hose = PCI_GET_PHB_PTR(bus);
- struct list_head *ln;
+ struct pci_dev *dev;
/* XXX or bus->parent? */
struct pci_dev *dev = bus->self;
@@ -626,8 +626,7 @@
if (!pci_probe_only)
return;
- list_for_each(ln, &bus->devices) {
- struct pci_dev *dev = pci_dev_b(ln);
+ list_for_each_entry(dev, &bus->devices, bus_list) {
if ((dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)
pcibios_fixup_device_resources(dev, bus);
}
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-20 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 19:00 [Kernel-janitors] [patch 6/12] pci_dev_b to list_for_each_entry: Domen Puncer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.