mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
isa: Convert uses of isa_create(), isa_try_create() manually
Same transformation as in the previous commit. Manual, because convincing Coccinelle to transform these cases is not worthwhile. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-21-armbru@redhat.com>
This commit is contained in:
parent
96927c744f
commit
c23e05614e
4 changed files with 11 additions and 11 deletions
|
@ -694,12 +694,11 @@ static bool pnv_match_cpu(const char *default_type, const char *cpu_type)
|
|||
|
||||
static void pnv_ipmi_bt_init(ISABus *bus, IPMIBmc *bmc, uint32_t irq)
|
||||
{
|
||||
Object *obj;
|
||||
ISADevice *dev = isa_new("isa-ipmi-bt");
|
||||
|
||||
obj = OBJECT(isa_create(bus, "isa-ipmi-bt"));
|
||||
object_property_set_link(obj, OBJECT(bmc), "bmc", &error_fatal);
|
||||
object_property_set_int(obj, irq, "irq", &error_fatal);
|
||||
object_property_set_bool(obj, true, "realized", &error_fatal);
|
||||
object_property_set_link(OBJECT(dev), OBJECT(bmc), "bmc", &error_fatal);
|
||||
object_property_set_int(OBJECT(dev), irq, "irq", &error_fatal);
|
||||
isa_realize_and_unref(dev, bus, &error_fatal);
|
||||
}
|
||||
|
||||
static void pnv_chip_power10_pic_print_info(PnvChip *chip, Monitor *mon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue