]> git.proxmox.com Git - qemu.git/commitdiff
hw/tcx: Remove unused 'addr' field and the property that sets it
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Mar 2013 12:35:09 +0000 (12:35 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 09:32:49 +0000 (10:32 +0100)
Remove the 'addr' field from TCXState (since it is completely unused),
also the qdev property which sets it. This seems to be a relic from
many years past; devices don't need to know where they are mapped.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/sparc/sun4m.c
hw/tcx.c

index 2f214da557725a7ddc7c49652b2cb73960a82693..9ebda02aa13ff1b2d36d3b262619d5a8fb78d228 100644 (file)
@@ -575,7 +575,6 @@ static void tcx_init(hwaddr addr, int vram_size, int width,
     SysBusDevice *s;
 
     dev = qdev_create(NULL, "SUNW,tcx");
-    qdev_prop_set_taddr(dev, "addr", addr);
     qdev_prop_set_uint32(dev, "vram_size", vram_size);
     qdev_prop_set_uint16(dev, "width", width);
     qdev_prop_set_uint16(dev, "height", height);
index f1edffd87786333ce298f796dd4dcbbba9655488..c44068e7c91d34eced2217c79adaccab2f7366db 100644 (file)
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -37,7 +37,6 @@
 
 typedef struct TCXState {
     SysBusDevice busdev;
-    hwaddr addr;
     QemuConsole *con;
     uint8_t *vram;
     uint32_t *vram24, *cplane;
@@ -707,7 +706,6 @@ write_err:
 }
 
 static Property tcx_properties[] = {
-    DEFINE_PROP_TADDR("addr",      TCXState, addr,      -1),
     DEFINE_PROP_HEX32("vram_size", TCXState, vram_size, -1),
     DEFINE_PROP_UINT16("width",    TCXState, width,     -1),
     DEFINE_PROP_UINT16("height",   TCXState, height,    -1),