Patchwork [1/3] m48t59: remove unused m48t59_set_addr

login
register
mail settings
Submitter Blue Swirl
Date Oct. 28, 2012, 12:26 p.m.
Message ID <bf26992171266db4f96e9079a7c0dde1438f875e.1351427134.git.blauwirbel@gmail.com>
Download mbox | patch
Permalink /patch/194695/
State New
Headers show

Comments

Blue Swirl - Oct. 28, 2012, 12:26 p.m.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 hw/m48t59.c |    7 -------
 hw/nvram.h  |    1 -
 2 files changed, 0 insertions(+), 8 deletions(-)

Patch

diff --git a/hw/m48t59.c b/hw/m48t59.c
index 9eb1a09..058d6e7 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -466,13 +466,6 @@  uint32_t m48t59_read (void *opaque, uint32_t addr)
     return retval;
 }
 
-void m48t59_set_addr (void *opaque, uint32_t addr)
-{
-    M48t59State *NVRAM = opaque;
-
-    NVRAM->addr = addr;
-}
-
 void m48t59_toggle_lock (void *opaque, int lock)
 {
     M48t59State *NVRAM = opaque;
diff --git a/hw/nvram.h b/hw/nvram.h
index 72363ce..59337fa 100644
--- a/hw/nvram.h
+++ b/hw/nvram.h
@@ -30,6 +30,5 @@  M48t59State *m48t59_init_isa(ISABus *bus, uint32_t io_base, uint16_t size,
                              int type);
 M48t59State *m48t59_init(qemu_irq IRQ, hwaddr mem_base,
                          uint32_t io_base, uint16_t size, int type);
-void m48t59_set_addr (void *opaque, uint32_t addr);
 
 #endif /* !NVRAM_H */