summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-15 11:47:19 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-05-04 14:11:08 +0200
commit9066df13a3db0b8c4c283fb6c6772da3d507c9b7 (patch)
tree7ba471ae7c905fa26b13a7ed712252df953e6d11 /hw
parent7b5a44c546d9b836859c48bcfb7f1d4ef57ac3e1 (diff)
downloadhqemu-9066df13a3db0b8c4c283fb6c6772da3d507c9b7.zip
hqemu-9066df13a3db0b8c4c283fb6c6772da3d507c9b7.tar.gz
ohci: get ohci state via container_of()
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb-ohci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c
index 0ad4f55..7678cdb 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
OpenPOWER on IntegriCloud