pci: Move VMState registration/unregistration to QOM realize/unrealize
commitd2f69df746f06d785ffbf6cc9711f7df9d014e35
authorBandan Das <bsd@redhat.com>
Mon, 25 Nov 2013 22:48:42 +0000 (25 17:48 -0500)
committerAndreas Färber <afaerber@suse.de>
Thu, 13 Mar 2014 00:21:57 +0000 (13 01:21 +0100)
tree99d73b3d346f354513a5fe3e3bde8f0175df8ef2
parent5c21ce77d7e5643089ceec556c0408445d017f32
pci: Move VMState registration/unregistration to QOM realize/unrealize

Use the realize and unrealize hooks to register and unregister
vmstate_pcibus respectively.

Relocate some stuff to avoid forward declarations.

Signed-off-by: Bandan Das <bsd@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
[AF: Keep using PCI_BUS() cast macro]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/pci/pci.c