From patchwork Mon Aug 24 16:42:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31982 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 0D837B7B65 for ; Tue, 25 Aug 2009 03:33:35 +1000 (EST) Received: from localhost ([127.0.0.1]:39069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfdQA-00028V-ST for incoming@patchwork.ozlabs.org; Mon, 24 Aug 2009 13:33:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mfcg0-0001BG-Vu for qemu-devel@nongnu.org; Mon, 24 Aug 2009 12:45:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mfcfw-00014l-3K for qemu-devel@nongnu.org; Mon, 24 Aug 2009 12:45:48 -0400 Received: from [199.232.76.173] (port=33821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mfcfv-00013x-P9 for qemu-devel@nongnu.org; Mon, 24 Aug 2009 12:45:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mfcfv-00036D-6Y for qemu-devel@nongnu.org; Mon, 24 Aug 2009 12:45:43 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7OGjgXY022410 for ; Mon, 24 Aug 2009 12:45:42 -0400 Received: from localhost.localdomain (vpn1-4-157.ams2.redhat.com [10.36.4.157]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7OGjKU8024317; Mon, 24 Aug 2009 12:45:40 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 24 Aug 2009 18:42:50 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 16/26] ne2000: pci_dev has this very value with the right type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/ne2000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ne2000.c b/hw/ne2000.c index 1555fc3..070afcc 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -820,7 +820,7 @@ static void pci_ne2000_init(PCIDevice *pci_dev) PCI_ADDRESS_SPACE_IO, ne2000_map); s = &d->ne2000; s->irq = d->dev.irq[0]; - s->pci_dev = (PCIDevice *)d; + s->pci_dev = pci_dev; qdev_get_macaddr(&d->dev.qdev, s->macaddr); ne2000_reset(s); s->vc = qdev_get_vlan_client(&d->dev.qdev,