From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqoW1-0005ab-JB for qemu-devel@nongnu.org; Wed, 11 Dec 2013 13:28:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqoVv-0000v1-Ew for qemu-devel@nongnu.org; Wed, 11 Dec 2013 13:28:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqoVv-0000uh-7S for qemu-devel@nongnu.org; Wed, 11 Dec 2013 13:28:03 -0500 Date: Wed, 11 Dec 2013 20:31:42 +0200 From: "Michael S. Tsirkin" Message-ID: <1386786509-29966-28-git-send-email-mst@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PULL 28/28] pc: use macro for HPET type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori avoid hard-coding strings Signed-off-by: Michael S. Tsirkin --- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 8353d10..3cd8f38 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, -- MST