David Gibson fd56e0612b pci: Eliminate redundant PCIDevice::bus pointer
The bus pointer in PCIDevice is basically redundant with QOM information.
It's always initialized to the qdev_get_parent_bus(), the only difference
is the type.

Therefore this patch eliminates the field, instead creating a pci_get_bus()
helper to do the type mangling to derive it conveniently from the QOM
Device object underneath.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
2017-12-05 19:13:45 +02:00
..
2016-10-04 13:28:07 +01:00
2017-11-24 11:28:56 +00:00
2017-08-02 18:30:13 -03:00
2017-10-27 16:03:54 +02:00
2017-11-13 14:33:29 +00:00
2017-11-20 13:39:48 +00:00
2017-10-15 05:54:40 +03:00
2016-01-29 15:07:25 +00:00
2017-09-27 11:35:59 +01:00
2017-08-30 18:23:25 +02:00