From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV02u-0004D8-8w for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV02Y-0001QH-Ly for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:05:59 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:42384 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PV02Y-0001Pl-6F for qemu-devel@nongnu.org; Tue, 21 Dec 2010 06:05:58 -0500 Date: Tue, 21 Dec 2010 12:05:38 +0100 Message-Id: <1292929538$3002@local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] apb_pci: 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/apb_pci.c b/hw/apb_pci.c index 84e9af7..97b3032 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -321,7 +321,7 @@ static int apb_pci_bridge_initfn(PCIDevice *dev) pci_set_word(dev->config + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM); - pci_set_byte(dev->config + PCI_REVISION_ID, 0x11); + pci_config_set_revision(dev->config, 0x11); return 0; }