pci: use qbus_create in pci_bus_new
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2013 13:12:29 +0000 (14:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 21:53:09 +0000 (15:53 -0600)
commit4fec6404465fdb1f09670b1451605c7cbf87c01e
tree6e8f35e5616079865f733de66fde941b192d721c
parent39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6
pci: use qbus_create in pci_bus_new

Remove knowledge of QOM innards.  The common part of pci_bus_new and
pci_bus_new_inplace is moved to a new function pci_bus_init.

Acked-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci/pci.c