diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-23 20:30:03 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-08-30 20:14:39 +0200 |
commit | b1187b51ff5563135da0a9e5c855d7876ab1a926 (patch) | |
tree | 81c6a30bfe00e81e35d4532402f1538689232e96 /hw/scsi/megasas.c | |
parent | dd301ca607feddab3b44f927cd36aee004c40e1a (diff) | |
download | qemu-b1187b51ff5563135da0a9e5c855d7876ab1a926.zip qemu-b1187b51ff5563135da0a9e5c855d7876ab1a926.tar.gz qemu-b1187b51ff5563135da0a9e5c855d7876ab1a926.tar.bz2 |
scsi: Pass size to scsi_bus_new()
To be passed to qbus_create_inplace().
Use DEVICE() casts instead of direct parent field access.
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/scsi/megasas.c')
-rw-r--r-- | hw/scsi/megasas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index a6d5285..09b51b3 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -2171,7 +2171,8 @@ static int megasas_scsi_init(PCIDevice *dev) s->frames[i].state = s; } - scsi_bus_new(&s->bus, DEVICE(dev), &megasas_scsi_info, NULL); + scsi_bus_new(&s->bus, sizeof(s->bus), DEVICE(dev), + &megasas_scsi_info, NULL); if (!d->hotplugged) { scsi_bus_legacy_handle_cmdline(&s->bus, &err); if (err != NULL) { |