On Wed, Nov 29, 2017 at 07:46:28PM +1100, David Gibson wrote: > pci_find_primary_bus() only has one user, in pc_xen_hvm_init(). That's > inside the machine construction code, so it already has easy access to the > machine's primary PCI bus. > > Get it directly, and thereby remove pci_find_primary_bus(). This removes > one of only a handful of users of the ugly pci_host_bridges global. > > Signed-off-by: David Gibson <da...@gibson.dropbear.id.au>
Reviewed-by: Peter Xu <pet...@redhat.com> -- Peter Xu