From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKBNW-0004ze-RM for qemu-devel@nongnu.org; Mon, 14 Dec 2009 08:54:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKBNR-0004u5-Us for qemu-devel@nongnu.org; Mon, 14 Dec 2009 08:54:22 -0500 Received: from [199.232.76.173] (port=52360 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKBNR-0004tm-J4 for qemu-devel@nongnu.org; Mon, 14 Dec 2009 08:54:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31274) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKBNQ-0006Y1-U9 for qemu-devel@nongnu.org; Mon, 14 Dec 2009 08:54:17 -0500 Date: Mon, 14 Dec 2009 15:51:33 +0200 From: "Michael S. Tsirkin" Message-ID: <20091214135133.GJ973@redhat.com> References: <1260794906-30168-1-git-send-email-yamahata@valinux.co.jp> <1260794906-30168-8-git-send-email-yamahata@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1260794906-30168-8-git-send-email-yamahata@valinux.co.jp> Subject: [Qemu-devel] Re: [PATCH 07/11] gt64xxx: remove gt64120_{read, write}_config(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: qemu-devel@nongnu.org On Mon, Dec 14, 2009 at 09:48:22PM +0900, Isaku Yamahata wrote: > They call only pci_default_{read, write}_config(). > So they aren't necessary. > > Signed-off-by: Isaku Yamahata Acked-by: Michael S. Tsirkin > --- > hw/gt64xxx.c | 13 +------------ > 1 files changed, 1 insertions(+), 12 deletions(-) > > diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c > index fb7f5bd..c8034e2 100644 > --- a/hw/gt64xxx.c > +++ b/hw/gt64xxx.c > @@ -1082,17 +1082,6 @@ static void gt64120_reset(void *opaque) > gt64120_pci_mapping(s); > } > > -static uint32_t gt64120_read_config(PCIDevice *d, uint32_t address, int len) > -{ > - return pci_default_read_config(d, address, len); > -} > - > -static void gt64120_write_config(PCIDevice *d, uint32_t address, uint32_t val, > - int len) > -{ > - pci_default_write_config(d, address, val, len); > -} > - > static void gt64120_save(QEMUFile* f, void *opaque) > { > PCIDevice *d = opaque; > @@ -1125,7 +1114,7 @@ PCIBus *pci_gt64120_init(qemu_irq *pic) > pic, 144, 4); > s->ISD_handle = cpu_register_io_memory(gt64120_read, gt64120_write, s); > d = pci_register_device(s->pci->bus, "GT64120 PCI Bus", sizeof(PCIDevice), > - 0, gt64120_read_config, gt64120_write_config); > + 0, NULL, NULL); > > /* FIXME: Malta specific hw assumptions ahead */ > > -- > 1.6.5.4