From patchwork Tue Dec 21 11:05:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 76276 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 B5519B6F14 for ; Tue, 21 Dec 2010 22:07:48 +1100 (EST) Received: from localhost ([127.0.0.1]:42302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV03g-0004FD-Ov for incoming@patchwork.ozlabs.org; Tue, 21 Dec 2010 06:07:08 -0500 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 Received: (qmail invoked by alias); 21 Dec 2010 11:05:56 -0000 Received: from g226049212.adsl.alicedsl.de (HELO opensuse112) [92.226.49.212] by mail.gmx.net (mp015) with SMTP; 21 Dec 2010 12:05:56 +0100 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX1/gcF0ZA3jgtGb8jlxU8FrZ6odTZbgpXwmdb2AD59 hZhJsEjKgM/nxH X-Mailer: gregkh_patchbomb modified Date: Tue, 21 Dec 2010 12:05:38 +0100 Message-Id: <1292929538$3002@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: Genre and OS details not recognized. Cc: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] apb_pci: 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/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; }