Re: [PATCH] PCI and I2C fixes for 2.6.8

Greg KH
2004-08-23T19:53:02Z

ChangeSet 1.1790.2.3, 2004/08/02 15:33:31-07:00, domen@coderock.org

[PATCH] PCI: use list_for_each() i386/pci/pcbios.c

From: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

arch/i386/pci/pcbios.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/arch/i386/pci/pcbios.c b/arch/i386/pci/pcbios.c
--- a/arch/i386/pci/pcbios.c 2004-08-23 11:08:39 -07:00
+++ b/arch/i386/pci/pcbios.c 2004-08-23 11:08:39 -07:00
@@ -365,7 +365,7 @@
idx = found = 0;
while (pci_bios_find_device(dev->vendor, dev->device, idx, &bus, &devfn) == PCIBIOS_SUCCESSFUL) {
idx++;
- for (ln=pci_devices.next; ln != &pci_devices; ln=ln->next) {
+ list_for_each(ln, &pci_devices) {
d = pci_dev_g(ln);
if (d->bus->number == bus && d->devfn == devfn) {
list_del(&d->global_list);