Message ID | 1459855602-16727-5-git-send-email-caoj.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 04/05/2016 02:26 PM, Cao jin wrote: > All the other devices` .realize function name are xxx_realize, except this one > > Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> > CC: Paolo Bonzini <pbonzini@redhat.com> > --- > hw/scsi/mptsas.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c > index 499c146..1c18c84 100644 > --- a/hw/scsi/mptsas.c > +++ b/hw/scsi/mptsas.c > @@ -1270,7 +1270,7 @@ static const struct SCSIBusInfo mptsas_scsi_info = { > .load_request = mptsas_load_request, > }; > > -static void mptsas_scsi_init(PCIDevice *dev, Error **errp) > +static void mptsas_scsi_realize(PCIDevice *dev, Error **errp) > { > DeviceState *d = DEVICE(dev); > MPTSASState *s = MPT_SAS(dev); > @@ -1413,7 +1413,7 @@ static void mptsas1068_class_init(ObjectClass *oc, void *data) > DeviceClass *dc = DEVICE_CLASS(oc); > PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc); > > - pc->realize = mptsas_scsi_init; > + pc->realize = mptsas_scsi_realize; > pc->exit = mptsas_scsi_uninit; > pc->romfile = 0; > pc->vendor_id = PCI_VENDOR_ID_LSI_LOGIC; > Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Thanks, Marcel
diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 499c146..1c18c84 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -1270,7 +1270,7 @@ static const struct SCSIBusInfo mptsas_scsi_info = { .load_request = mptsas_load_request, }; -static void mptsas_scsi_init(PCIDevice *dev, Error **errp) +static void mptsas_scsi_realize(PCIDevice *dev, Error **errp) { DeviceState *d = DEVICE(dev); MPTSASState *s = MPT_SAS(dev); @@ -1413,7 +1413,7 @@ static void mptsas1068_class_init(ObjectClass *oc, void *data) DeviceClass *dc = DEVICE_CLASS(oc); PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc); - pc->realize = mptsas_scsi_init; + pc->realize = mptsas_scsi_realize; pc->exit = mptsas_scsi_uninit; pc->romfile = 0; pc->vendor_id = PCI_VENDOR_ID_LSI_LOGIC;
All the other devices` .realize function name are xxx_realize, except this one Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> CC: Paolo Bonzini <pbonzini@redhat.com> --- hw/scsi/mptsas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)