ssi: Convert last use of ssi_create_slave_no_init() manually
Same transformation as in the previous commit. Manual, because convincing Coccinelle to transform this case is not worthwhile. Cc: Alistair Francis <alistair@alistair23.me> Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-25-armbru@redhat.com>
This commit is contained in:
parent
57d479c9c6
commit
7e272a0001
@ -16,6 +16,7 @@
|
|||||||
#include "hw/ssi/ssi.h"
|
#include "hw/ssi/ssi.h"
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
|
#include "qapi/error.h"
|
||||||
|
|
||||||
struct SSIBus {
|
struct SSIBus {
|
||||||
BusState parent_obj;
|
BusState parent_obj;
|
||||||
@ -96,9 +97,9 @@ DeviceState *ssi_create_slave_no_init(SSIBus *bus, const char *name)
|
|||||||
|
|
||||||
DeviceState *ssi_create_slave(SSIBus *bus, const char *name)
|
DeviceState *ssi_create_slave(SSIBus *bus, const char *name)
|
||||||
{
|
{
|
||||||
DeviceState *dev = ssi_create_slave_no_init(bus, name);
|
DeviceState *dev = qdev_new(name);
|
||||||
|
|
||||||
qdev_init_nofail(dev);
|
qdev_realize_and_unref(dev, &bus->parent_obj, &error_fatal);
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user