Revision ad6d45fa hw/pc_piix.c

b/hw/pc_piix.c
99 99
    MemoryRegion *ram_memory;
100 100
    MemoryRegion *pci_memory;
101 101
    MemoryRegion *rom_memory;
102
    DeviceState *dev;
102 103

  
103 104
    pc_cpus_init(cpu_model);
104 105

  
......
168 169

  
169 170
    pc_register_ferr_irq(gsi[13]);
170 171

  
171
    pc_vga_init(pci_enabled? pci_bus: NULL);
172
    dev = pc_vga_init(pci_enabled? pci_bus: NULL);
173
    if (dev) {
174
        qdev_property_add_child(qdev_get_root(), "vga", dev, NULL);
175
    }
172 176

  
173 177
    if (xen_enabled()) {
174 178
        pci_create_simple(pci_bus, -1, "xen-platform");

Also available in: Unified diff