From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHeD8-0008BQ-L1 for qemu-devel@nongnu.org; Wed, 04 May 2011 11:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHeD7-0007Ir-RJ for qemu-devel@nongnu.org; Wed, 04 May 2011 11:41:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHeD7-0007Ia-FE for qemu-devel@nongnu.org; Wed, 04 May 2011 11:41:57 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p44Ffua6024447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 May 2011 11:41:56 -0400 From: Gerd Hoffmann Date: Wed, 4 May 2011 17:41:45 +0200 Message-Id: <1304523708-9556-12-git-send-email-kraxel@redhat.com> In-Reply-To: <1304523708-9556-1-git-send-email-kraxel@redhat.com> References: <1304523708-9556-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 11/14] ohci: get ohci state via container_of() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- 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 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 -- 1.7.1