From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S54XN-0007kW-LY for qemu-devel@nongnu.org; Tue, 06 Mar 2012 19:15:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S54XM-0005is-1O for qemu-devel@nongnu.org; Tue, 06 Mar 2012 19:15:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S54XL-0005im-PU for qemu-devel@nongnu.org; Tue, 06 Mar 2012 19:15:23 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q270FM91006311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Mar 2012 19:15:22 -0500 From: Alex Williamson Date: Tue, 06 Mar 2012 17:15:21 -0700 Message-ID: <20120307001517.3079.65758.stgit@bling.home> In-Reply-To: <20120307000340.3079.87515.stgit@bling.home> References: <20120307000340.3079.87515.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 6/6] api_piix4: Remove PCI_RMV_BASE write code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.williamson@redhat.com, ddutile@redhat.com, gleb@redhat.com, mst@redhat.com Achieves the same result with less code. Signed-off-by: Alex Williamson --- hw/acpi_piix4.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 4640e2e..3db0efd 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -532,11 +532,6 @@ static uint32_t pcirmv_read(void *opaque, uint32_t addr) return s->pci0_hotplug_enable; } -static void pcirmv_write(void *opaque, uint32_t addr, uint32_t val) -{ - return; -} - extern const char *global_cpu_model; static int piix4_device_hotplug(DeviceState *qdev, PCIDevice *dev, @@ -562,7 +557,6 @@ static void piix4_acpi_system_hot_add_init(PCIBus *bus, PIIX4PMState *s) register_ioport_write(PCI_EJ_BASE, 4, 4, pciej_write, s); - register_ioport_write(PCI_RMV_BASE, 4, 4, pcirmv_write, s); register_ioport_read(PCI_RMV_BASE, 4, 4, pcirmv_read, s); pci_bus_hotplug(bus, piix4_device_hotplug, &s->dev.qdev);