Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI and I2C fixes for 2.6.8 | Date | Mon, 23 Aug 2004 11:34:41 -0700 | From | Greg KH <> |
| |
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); - 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/
| |