Revision 81a322d4 hw/pci.c

b/hw/pci.c
895 895
    return s->bus;
896 896
}
897 897

  
898
static void pci_qdev_init(DeviceState *qdev, DeviceInfo *base)
898
static int pci_qdev_init(DeviceState *qdev, DeviceInfo *base)
899 899
{
900 900
    PCIDevice *pci_dev = (PCIDevice *)qdev;
901 901
    PCIDeviceInfo *info = container_of(base, PCIDeviceInfo, qdev);
......
907 907
    pci_dev = do_pci_register_device(pci_dev, bus, base->name, devfn,
908 908
                                     info->config_read, info->config_write);
909 909
    assert(pci_dev);
910
    info->init(pci_dev);
910
    return info->init(pci_dev);
911 911
}
912 912

  
913 913
void pci_qdev_register(PCIDeviceInfo *info)

Also available in: Unified diff