From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40392 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUzxQ-00025x-HU for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:00:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUzxP-0000Ct-1y for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:00:40 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:39496 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PUzxO-0000Cg-Ln for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:00:39 -0500 Date: Tue, 21 Dec 2010 12:00:25 +0100 Message-Id: <1292929225$3707@local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] ioh3420: use pci_config_set_revision() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sebastian Herbszt Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt diff --git a/hw/ioh3420.c b/hw/ioh3420.c index 95adf09..25ed2eb 100644 --- a/hw/ioh3420.c +++ b/hw/ioh3420.c @@ -104,7 +104,7 @@ static int ioh3420_initfn(PCIDevice *d) return rc; } - d->config[PCI_REVISION_ID] = PCI_DEVICE_ID_IOH_REV; + pci_config_set_revision(d->config, PCI_DEVICE_ID_IOH_REV); pcie_port_init_reg(d); pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_INTEL);