From patchwork Wed May 4 15:41:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 94066 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8E2031007EA for ; Thu, 5 May 2011 01:43:59 +1000 (EST) Received: from localhost ([::1]:54616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHeF2-0002Rs-QX for incoming@patchwork.ozlabs.org; Wed, 04 May 2011 11:43:56 -0400 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 Received: from rincewind.home.kraxel.org (vpn2-9-245.ams2.redhat.com [10.36.9.245]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p44FftBE001329; Wed, 4 May 2011 11:41:56 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 5F5A1425C6; Wed, 4 May 2011 17:41:49 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 11/14] ohci: get ohci state via container_of() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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