diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:41 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:49 -0600 |
commit | ad6d45fa0837acf3e8cab323ee5b08e05a9410a5 (patch) | |
tree | 589be72d1f0ec05c6e6ff9d215c36186e845cc4c /hw/vga-pci.c | |
parent | b2b6c39a7915e82cade4ab8689344c91c5e45653 (diff) |
qom: add vga node to the pc composition tree
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga-pci.c')
-rw-r--r-- | hw/vga-pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/vga-pci.c b/hw/vga-pci.c index 14bfadbfcf..a75dbf3974 100644 --- a/hw/vga-pci.c +++ b/hw/vga-pci.c @@ -70,10 +70,9 @@ static int pci_vga_initfn(PCIDevice *dev) return 0; } -int pci_vga_init(PCIBus *bus) +DeviceState *pci_vga_init(PCIBus *bus) { - pci_create_simple(bus, -1, "VGA"); - return 0; + return &pci_create_simple(bus, -1, "VGA")->qdev; } static PCIDeviceInfo vga_info = { |