[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5] gt64120: convert to realize()
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 4/5] gt64120: convert to realize() |
Date: |
Fri, 18 Dec 2015 18:59:30 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Cc: address@hidden
On 18/12/2015 12:03, Cao jin wrote:
> Signed-off-by: Cao jin <address@hidden>
> ---
> hw/mips/gt64xxx_pci.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c
> index f76a9fd..c1f3c9c 100644
> --- a/hw/mips/gt64xxx_pci.c
> +++ b/hw/mips/gt64xxx_pci.c
> @@ -1193,7 +1193,7 @@ static int gt64120_init(SysBusDevice *dev)
> return 0;
> }
>
> -static int gt64120_pci_init(PCIDevice *d)
> +static void gt64120_pci_realize(PCIDevice *d, Error **errp)
> {
> /* FIXME: Malta specific hw assumptions ahead */
> pci_set_word(d->config + PCI_COMMAND, 0);
> @@ -1207,8 +1207,6 @@ static int gt64120_pci_init(PCIDevice *d)
> pci_set_long(d->config + PCI_BASE_ADDRESS_4, 0x14000000);
> pci_set_long(d->config + PCI_BASE_ADDRESS_5, 0x14000001);
> pci_set_byte(d->config + 0x3d, 0x01);
> -
> - return 0;
> }
>
> static void gt64120_pci_class_init(ObjectClass *klass, void *data)
> @@ -1216,7 +1214,7 @@ static void gt64120_pci_class_init(ObjectClass *klass,
> void *data)
> PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
> DeviceClass *dc = DEVICE_CLASS(klass);
>
> - k->init = gt64120_pci_init;
> + k->realize = gt64120_pci_realize;
> k->vendor_id = PCI_VENDOR_ID_MARVELL;
> k->device_id = PCI_DEVICE_ID_MARVELL_GT6412X;
> k->revision = 0x10;
>
- Re: [Qemu-devel] [PATCH 2/5] igd-passthrough-i440FX: convert to realize(), (continued)
[Qemu-devel] [PATCH 4/5] gt64120: convert to realize(), Cao jin, 2015/12/18
- Re: [Qemu-devel] [PATCH 4/5] gt64120: convert to realize(),
Paolo Bonzini <=
[Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/18
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Paolo Bonzini, 2015/12/18
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/20
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/21
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Paolo Bonzini, 2015/12/21
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/21
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Marcel Apfelbaum, 2015/12/22
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/22
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Marcel Apfelbaum, 2015/12/22
- Re: [Qemu-devel] [PATCH 3/5] PXB: convert to realize(), Cao jin, 2015/12/22