From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rd4OZ-0004rU-VH for qemu-devel@nongnu.org; Tue, 20 Dec 2011 13:26:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rd4OV-0004vM-M5 for qemu-devel@nongnu.org; Tue, 20 Dec 2011 13:26:35 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:37803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rd4OV-0004uO-EY for qemu-devel@nongnu.org; Tue, 20 Dec 2011 13:26:31 -0500 From: Peter Maydell Date: Tue, 20 Dec 2011 18:11:31 +0000 Message-Id: <1324404696-31368-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1324404696-31368-1-git-send-email-peter.maydell@linaro.org> References: <1324404696-31368-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/6] hw/omap1.c: omap_mpuio_init() need not be public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , Riku Voipio , patches@linaro.org omap_mpuio_init() is only used and defined in omap1.c, so make it static. Signed-off-by: Peter Maydell --- hw/omap.h | 4 ---- hw/omap1.c | 2 +- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/hw/omap.h b/hw/omap.h index 42eb361..5fe33db 100644 --- a/hw/omap.h +++ b/hw/omap.h @@ -672,10 +672,6 @@ void omap_uart_reset(struct omap_uart_s *s); void omap_uart_attach(struct omap_uart_s *s, CharDriverState *chr); struct omap_mpuio_s; -struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *system_memory, - target_phys_addr_t base, - qemu_irq kbd_int, qemu_irq gpio_int, qemu_irq wakeup, - omap_clk clk); qemu_irq *omap_mpuio_in_get(struct omap_mpuio_s *s); void omap_mpuio_out_set(struct omap_mpuio_s *s, int line, qemu_irq handler); void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down); diff --git a/hw/omap1.c b/hw/omap1.c index 53cde76..dddac92 100644 --- a/hw/omap1.c +++ b/hw/omap1.c @@ -2066,7 +2066,7 @@ static void omap_mpuio_onoff(void *opaque, int line, int on) omap_mpuio_kbd_update(s); } -struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory, +static struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory, target_phys_addr_t base, qemu_irq kbd_int, qemu_irq gpio_int, qemu_irq wakeup, omap_clk clk) -- 1.7.1