This series performs a simple replacement of object_new(object_class_get_name(class)) by object_new_with_class(class) in the spirit of existing object_new_with_type().
Cc: Igor Mitsyanko <i.mitsya...@gmail.com> Cc: Peter Maydell <peter.mayd...@linaro.org> Cc: Rob Herring <r...@kernel.org> Cc: "Edgar E. Iglesias" <edgar.igles...@gmail.com> Cc: Alistair Francis <alistair.fran...@xilinx.com> Cc: "Andreas Färber" <afaer...@suse.de> Cc: Richard Henderson <r...@twiddle.net> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Eduardo Habkost <ehabk...@redhat.com> Cc: Alexander Graf <ag...@suse.de> Cc: Max Filippov <jcmvb...@gmail.com> Cc: qemu-...@nongnu.org Radim Krčmář (2): qom: add object_new_with_class() coccinelle: use object_new_with_class() in obvious cases hw/arm/exynos4210.c | 2 +- hw/arm/highbank.c | 2 +- hw/arm/integratorcp.c | 2 +- hw/arm/realview.c | 2 +- hw/arm/versatilepb.c | 2 +- hw/arm/vexpress.c | 2 +- hw/arm/xilinx_zynq.c | 2 +- include/qom/object.h | 12 ++++++++++++ qom/cpu.c | 2 +- qom/object.c | 5 +++++ scripts/coccinelle/object_new_with_class.cocci | 5 +++++ target-alpha/cpu.c | 2 +- target-i386/cpu.c | 2 +- target-m68k/helper.c | 2 +- target-s390x/cpu_models.c | 2 +- target-xtensa/helper.c | 2 +- vl.c | 4 ++-- 17 files changed, 37 insertions(+), 15 deletions(-) create mode 100644 scripts/coccinelle/object_new_with_class.cocci -- 2.10.0