Commit 186cb06c authored by Maximilian Attems's avatar Maximilian Attems Committed by Greg Kroah-Hartman

[PATCH] PCI list_for_each: arch-sparc-kernel-pcic.c

s/for/list_for_each/
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent ce6fd84f
...@@ -603,7 +603,7 @@ pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node) ...@@ -603,7 +603,7 @@ pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node)
*/ */
void __init pcibios_fixup_bus(struct pci_bus *bus) void __init pcibios_fixup_bus(struct pci_bus *bus)
{ {
struct list_head *walk; struct pci_dev *dev;
int i, has_io, has_mem; int i, has_io, has_mem;
unsigned int cmd; unsigned int cmd;
struct linux_pcic *pcic; struct linux_pcic *pcic;
...@@ -625,9 +625,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus) ...@@ -625,9 +625,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)
return; return;
} }
walk = &bus->devices; list_for_each_entry(dev, &bus->devices, bus_list) {
for (walk = walk->next; walk != &bus->devices; walk = walk->next) {
struct pci_dev *dev = pci_dev_b(walk);
/* /*
* Comment from i386 branch: * Comment from i386 branch:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment