aboutsummaryrefslogtreecommitdiff
path: root/hw/sysbus.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-15 17:17:34 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-22 10:47:48 -0500
commitc5b3572fc64360152fe1ccb9e4b72d17770c55e7 (patch)
treed53692b20eba074fdbe7ba040462ab5ccfd56d61 /hw/sysbus.c
parentcd0fa1e6d30b122dc239735e85853e7696e8e07a (diff)
downloadqemu-c5b3572fc64360152fe1ccb9e4b72d17770c55e7.zip
qemu-c5b3572fc64360152fe1ccb9e4b72d17770c55e7.tar.gz
qemu-c5b3572fc64360152fe1ccb9e4b72d17770c55e7.tar.bz2
sysbus: remove sysbus_init_mmio_cb()
This problem with this function is that it is not reversible - it is impossible to know where things are registered and unregister them exactly. As there are no more users, we can remove it. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r--hw/sysbus.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c
index 1e57f09..f39768b 100644
--- a/hw/sysbus.c
+++ b/hw/sysbus.c
@@ -107,18 +107,6 @@ void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size,
dev->mmio[n].iofunc = iofunc;
}
-void sysbus_init_mmio_cb(SysBusDevice *dev, target_phys_addr_t size,
- mmio_mapfunc cb)
-{
- int n;
-
- assert(dev->num_mmio < QDEV_MAX_MMIO);
- n = dev->num_mmio++;
- dev->mmio[n].addr = -1;
- dev->mmio[n].size = size;
- dev->mmio[n].cb = cb;
-}
-
void sysbus_init_mmio_cb2(SysBusDevice *dev,
mmio_mapfunc cb, mmio_mapfunc unmap)
{