minor fix of pci_register_bus()

keep first_bus linked list correct.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
Isaku Yamahata 2009-05-01 18:33:53 +09:00 committed by Blue Swirl
parent 6407f37373
commit 425c608c48

View File

@ -100,6 +100,7 @@ PCIBus *pci_register_bus(pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
bus->irq_opaque = pic; bus->irq_opaque = pic;
bus->devfn_min = devfn_min; bus->devfn_min = devfn_min;
bus->nirq = nirq; bus->nirq = nirq;
bus->next = first_bus;
first_bus = bus; first_bus = bus;
register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus); register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus);
return bus; return bus;