summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLi Qiang <liq3ea@gmail.com>2018-12-13 13:47:56 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-12-13 13:47:56 +0000
commitbd02b01454c16ca9c07eb7c82588d8b5d0cac9fa (patch)
treea31f7be04db1d7d953a568aa9fa26c4357670e9a
parent6145a6d84b3bf0f25935b88543febe076c61b0f4 (diff)
downloadfocaccia-qemu-bd02b01454c16ca9c07eb7c82588d8b5d0cac9fa.tar.gz
focaccia-qemu-bd02b01454c16ca9c07eb7c82588d8b5d0cac9fa.zip
hw: arm: musicpal: drop TYPE_WM8750 in object_property_set_link()
The third argument of object_property_set_link() is the name of
property, not related with the QOM type name, using the constant
string instead.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 1542880825-2604-1-git-send-email-liq3ea@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-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 9648b3af44..726ae29394 100644
--- a/hw/arm/musicpal.c
+++ b/hw/arm/musicpal.c
@@ -1696,7 +1696,7 @@ static void musicpal_init(MachineState *machine)
     dev = qdev_create(NULL, TYPE_MV88W8618_AUDIO);
     s = SYS_BUS_DEVICE(dev);
     object_property_set_link(OBJECT(dev), OBJECT(wm8750_dev),
-                             TYPE_WM8750, NULL);
+                             "wm8750", NULL);
     qdev_init_nofail(dev);
     sysbus_mmio_map(s, 0, MP_AUDIO_BASE);
     sysbus_connect_irq(s, 0, pic[MP_AUDIO_IRQ]);