aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-12-11 02:47:16 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-12-11 20:11:10 +0200
commit142e0950cfaf023a81112dc3cdfa799d769886a4 (patch)
tree265febccce0b2739469247e5cbba89a364c34927 /hw
parent8ac2adf79a06372fe2c50ddac64cfffb93dbfeb8 (diff)
downloadqemu-142e0950cfaf023a81112dc3cdfa799d769886a4.zip
qemu-142e0950cfaf023a81112dc3cdfa799d769886a4.tar.gz
qemu-142e0950cfaf023a81112dc3cdfa799d769886a4.tar.bz2
hpet: fix build with CONFIG_HPET off
make hpet_find inline so we don't need to build hpet.c to check if hpet is enabled. Fixes link error with CONFIG_HPET off. Cc: qemu-stable@nongnu.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/timer/hpet.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
index 0ec440e..bb3bf98 100644
--- a/hw/timer/hpet.c
+++ b/hw/timer/hpet.c
@@ -42,7 +42,6 @@
#define HPET_MSI_SUPPORT 0
-#define TYPE_HPET "hpet"
#define HPET(obj) OBJECT_CHECK(HPETState, (obj), TYPE_HPET)
struct HPETState;
@@ -772,11 +771,6 @@ static void hpet_device_class_init(ObjectClass *klass, void *data)
dc->props = hpet_device_properties;
}
-bool hpet_find(void)
-{
- return object_resolve_path_type("", TYPE_HPET, NULL);
-}
-
static const TypeInfo hpet_device_info = {
.name = TYPE_HPET,
.parent = TYPE_SYS_BUS_DEVICE,