summary refs log tree commit diff stats
path: root/hw/arm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-16 03:07:33 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:06:35 +0100
commit901b78a0eeda7d8d955e9ffe6608801df14b5638 (patch)
treef498299200554d44c81704afff4b767c12d62e61 /hw/arm
parentb708e31185e060dac0fbc1420656f1dc812451eb (diff)
downloadfocaccia-qemu-901b78a0eeda7d8d955e9ffe6608801df14b5638.tar.gz
focaccia-qemu-901b78a0eeda7d8d955e9ffe6608801df14b5638.zip
hw: Replace DEVICE(object_new) -> qdev_new()
Prefer QDev API for QDev objects, avoid the underlying QOM layer.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20240216110313.17039-7-philmd@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/musicpal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c
index a712ff954b..48a32c2407 100644
--- a/hw/arm/musicpal.c
+++ b/hw/arm/musicpal.c
@@ -1238,7 +1238,7 @@ static void musicpal_init(MachineState *machine)
                           qdev_get_gpio_in(pic, MP_TIMER4_IRQ), NULL);
 
     /* Logically OR both UART IRQs together */
-    uart_orgate = DEVICE(object_new(TYPE_OR_IRQ));
+    uart_orgate = qdev_new(TYPE_OR_IRQ);
     object_property_set_int(OBJECT(uart_orgate), "num-lines", 2, &error_fatal);
     qdev_realize_and_unref(uart_orgate, NULL, &error_fatal);
     qdev_connect_gpio_out(uart_orgate, 0,