aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-06-10 07:32:23 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-06-15 22:05:28 +0200
commitcd9ae806cdad8f1992e0ac9198c114c636693764 (patch)
treec7cd5c0467777e3c2148aaec860cdc44631e033c /hw/misc
parent2214985408041b54e7f25ce76cd8e6d9e68c4be1 (diff)
downloadqemu-cd9ae806cdad8f1992e0ac9198c114c636693764.zip
qemu-cd9ae806cdad8f1992e0ac9198c114c636693764.tar.gz
qemu-cd9ae806cdad8f1992e0ac9198c114c636693764.tar.bz2
auxbus: Eliminate aux_create_slave()
aux_create_slave() has become a trivial wrapper around qdev_new(). There's just one user. Eliminate. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-35-armbru@redhat.com>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/auxbus.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/hw/misc/auxbus.c b/hw/misc/auxbus.c
index 5c9c23a..da361ba 100644
--- a/hw/misc/auxbus.c
+++ b/hw/misc/auxbus.c
@@ -273,15 +273,6 @@ static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent)
memory_region_size(s->mmio));
}
-DeviceState *aux_create_slave(AUXBus *bus, const char *type)
-{
- DeviceState *dev;
-
- dev = qdev_new(type);
- assert(dev);
- return dev;
-}
-
void aux_init_mmio(AUXSlave *aux_slave, MemoryRegion *mmio)
{
assert(!aux_slave->mmio);