diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-05-01 18:33:53 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-03 22:10:59 +0300 |
commit | 425c608c481aee79de0a17e054e3c3bb0a6a530f (patch) | |
tree | 6ffc4bd209e33c514518d19b93eda40585912df9 | |
parent | 6407f37373093fd56cde9e20b0b5a878b67521ca (diff) |
minor fix of pci_register_bus()
keep first_bus linked list correct.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r-- | hw/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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->devfn_min = devfn_min; bus->nirq = nirq; + bus->next = first_bus; first_bus = bus; register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus); return bus; |