diff mbox

[05/11] m48t59: remove unused m48t59_set_addr

Message ID 967b2144fa644977a9fcc2d221dc0cb170cf4932.1350244587.git.blauwirbel@gmail.com
State New
Headers show

Commit Message

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

Comments

Andreas Färber Oct. 15, 2012, 12:04 a.m. UTC | #1
Am 14.10.2012 21:58, schrieb Blue Swirl:
> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

Reviewed-by: Andreas Färber <afaerber@suse.de>

Andreas
diff mbox

Patch

diff --git a/hw/m48t59.c b/hw/m48t59.c
index dd6cb37..867bbda 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 8924da4..b6953d5 100644
--- a/hw/nvram.h
+++ b/hw/nvram.h
@@ -38,6 +38,5 @@  M48t59State *m48t59_init_isa(ISABus *bus, uint32_t io_base, uint16_t size,
                              int type);
 M48t59State *m48t59_init(qemu_irq IRQ, target_phys_addr_t mem_base,
                          uint32_t io_base, uint16_t size, int type);
-void m48t59_set_addr (void *opaque, uint32_t addr);
 
 #endif /* !NVRAM_H */