Revision ff6986ce hw/xen/xen_apic.c

b/hw/xen/xen_apic.c
36 36
    .endianness = DEVICE_NATIVE_ENDIAN,
37 37
};
38 38

  
39
static void xen_apic_init(APICCommonState *s)
39
static void xen_apic_realize(DeviceState *dev, Error **errp)
40 40
{
41
    APICCommonState *s = APIC_COMMON(dev);
42

  
41 43
    memory_region_init_io(&s->io_memory, OBJECT(s), &xen_apic_io_ops, s,
42 44
                          "xen-apic-msi", APIC_SPACE_SIZE);
43 45

  
......
72 74
{
73 75
    APICCommonClass *k = APIC_COMMON_CLASS(klass);
74 76

  
75
    k->init = xen_apic_init;
77
    k->realize = xen_apic_realize;
76 78
    k->set_base = xen_apic_set_base;
77 79
    k->set_tpr = xen_apic_set_tpr;
78 80
    k->get_tpr = xen_apic_get_tpr;

Also available in: Unified diff