diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-12-16 17:03:44 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-04 14:11:08 +0200 |
commit | 13a9a0d3e253e272744b523e39642c9b6d564f4d (patch) | |
tree | f8591c4f360bd40a98fc756195920181cac71ec4 /hw/usb-msd.c | |
parent | 5dc1672b279344b5e4e1ba5526a8e45466b953a8 (diff) | |
download | qemu-13a9a0d3e253e272744b523e39642c9b6d564f4d.zip qemu-13a9a0d3e253e272744b523e39642c9b6d564f4d.tar.gz qemu-13a9a0d3e253e272744b523e39642c9b6d564f4d.tar.bz2 |
usb: move complete callback to port ops
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 947fd3f..93f4b78 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -241,7 +241,7 @@ static void usb_msd_command_complete(SCSIBus *bus, int reason, uint32_t tag, s->mode = USB_MSDM_CSW; } s->packet = NULL; - usb_packet_complete(p); + usb_packet_complete(&s->dev, p); } else if (s->data_len == 0) { s->mode = USB_MSDM_CSW; } @@ -257,7 +257,7 @@ static void usb_msd_command_complete(SCSIBus *bus, int reason, uint32_t tag, usb_packet_complete returns. */ DPRINTF("Packet complete %p\n", p); s->packet = NULL; - usb_packet_complete(p); + usb_packet_complete(&s->dev, p); } } } |