diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-16 22:25:28 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:46 -0500 |
commit | ca9c39faed928405574d234b4f7c5704cd2c568e (patch) | |
tree | bd18085c51f1741e18950480fdbccae0c4f85d8f /hw/usb-msd.c | |
parent | cd739fb6e93c32154c898c822c967877894b1ab3 (diff) | |
download | qemu-ca9c39faed928405574d234b4f7c5704cd2c568e.zip |
switch scsi bus to inplace allocation.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index aa0ce6a128..6b9c8a5bdd 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -45,7 +45,7 @@ typedef struct { uint32_t data_len; uint32_t residue; uint32_t tag; - SCSIBus *bus; + SCSIBus bus; DriveInfo *dinfo; SCSIDevice *scsi_dev; int result; @@ -527,8 +527,8 @@ static int usb_msd_initfn(USBDevice *dev) } s->dev.speed = USB_SPEED_FULL; - s->bus = scsi_bus_new(&s->dev.qdev, 0, 1, usb_msd_command_complete); - s->scsi_dev = scsi_bus_legacy_add_drive(s->bus, s->dinfo, 0); + scsi_bus_new(&s->bus, &s->dev.qdev, 0, 1, usb_msd_command_complete); + s->scsi_dev = scsi_bus_legacy_add_drive(&s->bus, s->dinfo, 0); usb_msd_handle_reset(dev); return 0; } |