qemu-e2k/hw/xtensa
Markus Armbruster 934df91296 qdev: Make qdev_prop_set_drive() match the other helpers
qdev_prop_set_drive() can fail.  None of the other qdev_prop_set_FOO()
can; they abort on error.

To clean up this inconsistency, rename qdev_prop_set_drive() to
qdev_prop_set_drive_err(), and create a qdev_prop_set_drive() that
aborts on error.

Coccinelle script to update callers:

    @ depends on !(file in "hw/core/qdev-properties-system.c")@
    expression dev, name, value;
    symbol error_abort;
    @@
    -    qdev_prop_set_drive(dev, name, value, &error_abort);
    +    qdev_prop_set_drive(dev, name, value);

    @@
    expression dev, name, value, errp;
    @@
    -    qdev_prop_set_drive(dev, name, value, errp);
    +    qdev_prop_set_drive_err(dev, name, value, errp);

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200622094227.1271650-14-armbru@redhat.com>
2020-06-23 16:07:07 +02:00
..
Kconfig hw/xtensa: add virt machine 2019-10-18 20:38:10 -07:00
Makefile.objs hw/xtensa: add virt machine 2019-10-18 20:38:10 -07:00
bootparam.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
mx_pic.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
pic_cpu.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
sim.c hw/core/loader: Let load_elf() populate a field with CPU-specific flags 2020-01-29 19:28:52 +01:00
virt.c sysbus: Convert to sysbus_realize() etc. with Coccinelle 2020-06-15 22:05:28 +02:00
xtensa_memory.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
xtensa_memory.h Include exec/memory.h slightly less 2019-08-16 13:31:52 +02:00
xtensa_sim.h hw/xtensa: add virt machine 2019-10-18 20:38:10 -07:00
xtfpga.c qdev: Make qdev_prop_set_drive() match the other helpers 2020-06-23 16:07:07 +02:00