diff options
author | Andreas Färber <afaerber@suse.de> | 2013-04-27 22:18:48 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-29 08:27:48 -0500 |
commit | d367ece5e51d4f48687813eb5fe8d2a0e2e728d2 (patch) | |
tree | 0381856658d0719eeaca065a4747daf947a4647c /include | |
parent | a2e0b863ebec1c9ceea9b7aab022a6378ea74136 (diff) |
pcspk: QOM'ify
Introduce type constant and cast macro to obsolete DO_UPCAST().
Prepares for ISA realizefn.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1367093935-29091-14-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/audio/pcspk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/audio/pcspk.h b/include/hw/audio/pcspk.h index ce8ef4f9ea..b60c000bd9 100644 --- a/include/hw/audio/pcspk.h +++ b/include/hw/audio/pcspk.h @@ -28,11 +28,13 @@ #include "hw/hw.h" #include "hw/isa/isa.h" +#define TYPE_PC_SPEAKER "isa-pcspk" + static inline ISADevice *pcspk_init(ISABus *bus, ISADevice *pit) { ISADevice *dev; - dev = isa_create(bus, "isa-pcspk"); + dev = isa_create(bus, TYPE_PC_SPEAKER); qdev_prop_set_uint32(&dev->qdev, "iobase", 0x61); qdev_prop_set_ptr(&dev->qdev, "pit", pit); qdev_init_nofail(&dev->qdev); |