David Gibson b0e5196a52 pci: Simplify pci_bus_is_root()
pci_bus_is_root() currently relies on a method in the PCIBusClass.
But it's always known if a PCI bus is a root bus when we create it, so
using a dynamic method is overkill.

This replaces it with an IS_ROOT bit in a new flags field, which is set on
root buses and otherwise clear.  As a bonus this removes the special
is_root logic from pci_expander_bridge, since it already creates its bus
as a root bus.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20190424041959.4087-3-david@gibson.dropbear.id.au>
2019-05-20 18:40:02 -04:00
..
2019-03-07 21:45:53 +01:00
2019-04-01 08:53:40 +02:00
2019-03-07 21:45:53 +01:00
2019-03-07 21:45:53 +01:00
2019-03-25 17:01:10 +00:00
2019-05-13 16:52:56 +01:00
2019-03-07 21:45:53 +01:00
2019-05-17 15:19:38 +02:00
2019-04-29 16:09:51 +01:00
2019-05-20 18:40:02 -04:00
2019-03-07 21:45:53 +01:00
2019-04-27 21:34:46 +01:00
2019-04-04 16:36:21 -07:00
2019-04-26 14:30:18 +01:00
2019-05-15 11:56:53 +02:00
2019-03-07 21:45:53 +01:00
2019-03-08 16:31:34 +00:00
2019-04-27 21:34:46 +01:00
2019-05-20 18:40:02 -04:00