summaryrefslogtreecommitdiffstats
path: root/include/hw/audio
diff options
context:
space:
mode:
authorEfimov Vasily2016-06-22 14:24:46 +0200
committerPaolo Bonzini2016-06-29 14:03:45 +0200
commit873b4d3f0571a1e415cf089a67a230ea8a12d059 (patch)
tree74bbe9ee7e0ec22f54140e8264651361bec48eb3 /include/hw/audio
parentide: move headers to include folder (diff)
downloadqemu-873b4d3f0571a1e415cf089a67a230ea8a12d059.tar.gz
qemu-873b4d3f0571a1e415cf089a67a230ea8a12d059.tar.xz
qemu-873b4d3f0571a1e415cf089a67a230ea8a12d059.zip
pcspk: convert "pit" property type from ptr to link
The speaker device needs pointer to ISA PIT device to operate. But according to qdev-properties.h, properties of pointer type should be avoided. It seems a link type property is a good substitution. Signed-off-by: Efimov Vasily <real@ispras.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/audio')
-rw-r--r--include/hw/audio/pcspk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/audio/pcspk.h b/include/hw/audio/pcspk.h
index ef95dd1360..33e46a53d0 100644
--- a/include/hw/audio/pcspk.h
+++ b/include/hw/audio/pcspk.h
@@ -38,7 +38,7 @@ static inline ISADevice *pcspk_init(ISABus *bus, ISADevice *pit)
isadev = isa_create(bus, TYPE_PC_SPEAKER);
dev = DEVICE(isadev);
qdev_prop_set_uint32(dev, "iobase", 0x61);
- qdev_prop_set_ptr(dev, "pit", pit);
+ object_property_set_link(OBJECT(dev), OBJECT(pit), "pit", NULL);
qdev_init_nofail(dev);
return isadev;