mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
pci: Trivial device model conversions to realize
Convert the device models where initialization obviously can't fail. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com>
This commit is contained in:
parent
7ee6c1e182
commit
9af21dbee1
34 changed files with 87 additions and 152 deletions
|
@ -107,10 +107,9 @@ static int pci_dec_21154_device_init(SysBusDevice *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int dec_21154_pci_host_init(PCIDevice *d)
|
||||
static void dec_21154_pci_host_realize(PCIDevice *d, Error **errp)
|
||||
{
|
||||
/* PCI2PCI bridge same values as PearPC - check this */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)
|
||||
|
@ -118,7 +117,7 @@ static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)
|
|||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
k->init = dec_21154_pci_host_init;
|
||||
k->realize = dec_21154_pci_host_realize;
|
||||
k->vendor_id = PCI_VENDOR_ID_DEC;
|
||||
k->device_id = PCI_DEVICE_ID_DEC_21154;
|
||||
k->revision = 0x02;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue