mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
2214985408
commit
cd9ae806cd
3 changed files with 1 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue