aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-02 15:25:25 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-06 17:01:11 +0200
commit2336172d9b396b4fa4483712f5560a563c25352f (patch)
tree6cf6abe7fc96439090163e5b22b4dd245fef7543 /include
parent59e75839057ec6e13538ef8b89aadfd9f237dc12 (diff)
downloadqemu-2336172d9b396b4fa4483712f5560a563c25352f.zip
qemu-2336172d9b396b4fa4483712f5560a563c25352f.tar.gz
qemu-2336172d9b396b4fa4483712f5560a563c25352f.tar.bz2
audio: set default value for pcspk.iobase property
Allows dropping the explicit qdev_prop_set_uint32 call in pcspk_init. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200702132525.6849-21-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r--include/hw/audio/pcspk.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/hw/audio/pcspk.h b/include/hw/audio/pcspk.h
index 8b48560..06cba00 100644
--- a/include/hw/audio/pcspk.h
+++ b/include/hw/audio/pcspk.h
@@ -33,11 +33,7 @@
static inline void pcspk_init(ISADevice *isadev, ISABus *bus, ISADevice *pit)
{
- DeviceState *dev;
-
- dev = DEVICE(isadev);
- qdev_prop_set_uint32(dev, "iobase", 0x61);
- object_property_set_link(OBJECT(dev), OBJECT(pit), "pit", NULL);
+ object_property_set_link(OBJECT(isadev), OBJECT(pit), "pit", NULL);
isa_realize_and_unref(isadev, bus, &error_fatal);
}