commit | a5390aa6dc3646b08bed421944cef0daf78ab994 | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Thu Feb 23 20:18:59 2012 -0700 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Thu Feb 23 20:18:59 2012 -0700 |
tree | c7c84410c2db3ca93e912135cd3c1722d4b644ac | |
parent | 844393f4c5e309dd262b27796471c47e348b57a8 [diff] |
PCI: don't publish new root bus until it's fully initialized When pci_create_root_bus() adds the new struct pci_bus to the global pci_root_buses list, the bus becomes visible to other parts of the kernel, so it should be fully initialized. This patch delays adding the bus to the pci_root_buses list until after all the struct pci_bus initialization is finished. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>