Skip to content
  • David Gibson's avatar
    pci: Abolish pci_find_root_bus() · 1ef7a2a2
    David Gibson authored
    
    
    pci_find_root_bus() takes a domain parameter.  Currently PCI root buses
    with domain other than 0 can't be created, so this is more or less a long
    winded way of retrieving the main PCI root bus.  Numbered domains don't
    actually properly cover the (non x86) possibilities for multiple PCI root
    buses, so this patch for now enforces the domain == 0 restriction in other
    places to replace pci_find_root_bus() with an explicit
    pci_find_primary_bus().
    
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    1ef7a2a2