summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorMarkus Armbruster2015-02-27 14:52:14 +0100
committerMichael S. Tsirkin2015-03-11 18:24:13 +0100
commitfc079951b7a5eb799bd24d18e4098aa03a3c79dd (patch)
treeb11d82bad11972e1a601181b850711117a61eaaf /hw/virtio/virtio-pci.h
parentpci: Convert pci_nic_init() to Error to avoid qdev_init() (diff)
downloadqemu-fc079951b7a5eb799bd24d18e4098aa03a3c79dd.tar.gz
qemu-fc079951b7a5eb799bd24d18e4098aa03a3c79dd.tar.xz
qemu-fc079951b7a5eb799bd24d18e4098aa03a3c79dd.zip
virtio-pci: Convert to realize()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-pci.h')
-rw-r--r--hw/virtio/virtio-pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 8873b6d138..3bac016999 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -82,7 +82,7 @@ typedef struct {
typedef struct VirtioPCIClass {
PCIDeviceClass parent_class;
- int (*init)(VirtIOPCIProxy *vpci_dev);
+ void (*realize)(VirtIOPCIProxy *vpci_dev, Error **errp);
} VirtioPCIClass;
struct VirtIOPCIProxy {