Revert "hw/prep: realize the PCI root bus as part of the prep init"
commit9e1b990c2ee6e1b14f9abdf5ab325ff2cf9d8bd5
authorMarkus Armbruster <armbru@redhat.com>
Wed, 10 Jun 2020 05:31:51 +0000 (10 07:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 15 Jun 2020 19:36:30 +0000 (15 21:36 +0200)
tree79b724f6cc9bba821efc50bd8c5e61b1b1869009
parent30884d1b837fb09f9dba3a770325e228ec2335b4
Revert "hw/prep: realize the PCI root bus as part of the prep init"

This reverts commit 685f9a3428f625f580af0123aa95f4838d86cac3.

Realizing a device automatically realizes its buses, in
device_set_realized().  Realizing them in realize methods is
redundant, unless the methods themselves require them to be realized
early.  raven_pcihost_realizefn() doesn't.  Drop the redundant bus
realization.

Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-3-armbru@redhat.com>
hw/pci-host/prep.c