* [Kernel-janitors] [patch 7/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: 812 bytes --]
--- kjt2/arch/ppc64/kernel/pci.c 2004-08-20 18:58:55.000000000 +0200
+++ kjt2-lfe/arch/ppc64/kernel/pci.c 2004-08-20 20:03:05.000000000 +0200
@@ -247,11 +247,10 @@
static void __init pcibios_claim_one_bus(struct pci_bus *b)
{
- struct list_head *ld;
+ struct pci_dev *dev;
struct pci_bus *child_bus;
- list_for_each(ld, &b->devices) {
- struct pci_dev *dev = pci_dev_b(ld);
+ list_for_each_entry(dev, &b->devices, bus_list) {
int i;
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
@@ -270,12 +269,10 @@
#ifndef CONFIG_PPC_ISERIES
static void __init pcibios_claim_of_setup(void)
{
- struct list_head *lb;
+ struct pci_bus *b;
- list_for_each(lb, &pci_root_buses) {
- struct pci_bus *b = pci_bus_b(lb);
+ list_for_each_entry(b, &pci_root_buses, node)
pcibios_claim_one_bus(b);
- }
}
#endif
[-- 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 7/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.