update to 2.6.9-rc1
[linux-flexiantxendom0-3.2.10.git] / arch / i386 / pci / pcbios.c
index 700188d..50fc1f3 100644 (file)
@@ -365,7 +365,7 @@ void __devinit pcibios_sort(void)
                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);