aboutsummaryrefslogtreecommitdiff
path: root/hw/vmware_vga.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-12 14:29:41 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-15 09:20:49 -0600
commitad6d45fa0837acf3e8cab323ee5b08e05a9410a5 (patch)
tree589be72d1f0ec05c6e6ff9d215c36186e845cc4c /hw/vmware_vga.h
parentb2b6c39a7915e82cade4ab8689344c91c5e45653 (diff)
downloadqemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.zip
qemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.tar.gz
qemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.tar.bz2
qom: add vga node to the pc composition tree
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vmware_vga.h')
-rw-r--r--hw/vmware_vga.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/vmware_vga.h b/hw/vmware_vga.h
index 5132573..db11cbf 100644
--- a/hw/vmware_vga.h
+++ b/hw/vmware_vga.h
@@ -4,15 +4,15 @@
#include "qemu-common.h"
/* vmware_vga.c */
-static inline bool pci_vmsvga_init(PCIBus *bus)
+static inline DeviceState *pci_vmsvga_init(PCIBus *bus)
{
PCIDevice *dev;
dev = pci_try_create(bus, -1, "vmware-svga");
if (!dev || qdev_init(&dev->qdev) < 0) {
- return false;
+ return NULL;
} else {
- return true;
+ return &dev->qdev;
}
}