From patchwork Mon Dec 20 21:36:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 76234 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 ozlabs.org (Postfix) with ESMTPS id 79358B7080 for ; Tue, 21 Dec 2010 08:44:39 +1100 (EST) Received: from localhost ([127.0.0.1]:42963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnX2-0006eE-7r for incoming@patchwork.ozlabs.org; Mon, 20 Dec 2010 16:44:36 -0500 Received: from [140.186.70.92] (port=57614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnUO-0005L2-Ax for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:41:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUnQy-0000xu-Te for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:38:21 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:46835 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PUnQy-0000xa-IA for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:38:20 -0500 Received: (qmail invoked by alias); 20 Dec 2010 21:38:18 -0000 Received: from g230186133.adsl.alicedsl.de (HELO opensuse112) [92.230.186.133] by mail.gmx.net (mp011) with SMTP; 20 Dec 2010 22:38:18 +0100 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX182cLFlsUo2vO+It0/tvSZeMwJz4dKuG5q4YL4UdG yrbQ10WKfwiPK1 X-Mailer: gregkh_patchbomb modified Date: Mon, 20 Dec 2010 22:36:41 +0100 Message-Id: <1292881001$3121@local> Mime-Version: 1.0 To: qemu-devel@nongnu.org From: Sebastian Herbszt X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] rtl8139: use pci_config_set_revision() 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 Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt diff --git a/hw/rtl8139.c b/hw/rtl8139.c index a8aed89..6407ce0 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -3346,7 +3346,7 @@ static int pci_rtl8139_init(PCIDevice *dev) pci_conf = s->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REALTEK); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8139); - pci_conf[PCI_REVISION_ID] = RTL8139_PCI_REVID; /* >=0x20 is for 8139C+ */ + pci_config_set_revision(pci_conf, RTL8139_PCI_REVID); /* >=0x20 is for 8139C+ */ pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET); pci_conf[PCI_INTERRUPT_PIN] = 1; /* interrupt pin 0 */ /* TODO: start of capability list, but no capability