aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-12-11 02:48:49 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-12-11 20:11:10 +0200
commit511161027a0ecab6e12107128adeb8a884c5bcbe (patch)
tree100aac047482ae05143f63bdb1a3ddf2e5750764 /hw
parent142e0950cfaf023a81112dc3cdfa799d769886a4 (diff)
pc: use macro for HPET type
avoid hard-coding strings Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i386/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 8353d10fa2..3cd8f383f3 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1282,7 +1282,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
*/
if (!no_hpet && (!kvm_irqchip_in_kernel() || kvm_has_pit_state2())) {
/* In order to set property, here not using sysbus_try_create_simple */
- hpet = qdev_try_create(NULL, "hpet");
+ hpet = qdev_try_create(NULL, TYPE_HPET);
if (hpet) {
/* For pc-piix-*, hpet's intcap is always IRQ2. For pc-q35-1.7
* and earlier, use IRQ2 for compat. Otherwise, use IRQ16~23,