diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-12-15 11:47:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-04 14:11:08 +0200 |
commit | 9066df13a3db0b8c4c283fb6c6772da3d507c9b7 (patch) | |
tree | 7ba471ae7c905fa26b13a7ed712252df953e6d11 | |
parent | 7b5a44c546d9b836859c48bcfb7f1d4ef57ac3e1 (diff) |
ohci: get ohci state via container_of()
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 0ad4f555d0..7678cdba11 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -577,7 +577,7 @@ static void ohci_process_lists(OHCIState *ohci, int completion); static void ohci_async_complete_packet(USBPacket *packet, void *opaque) { - OHCIState *ohci = opaque; + OHCIState *ohci = container_of(packet, OHCIState, usb_packet); #ifdef DEBUG_PACKET DPRINTF("Async packet complete\n"); #endif |