aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-04-02 17:33:51 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-18 15:14:37 +0200
commit2f262e06f01a38cb8a218b7c5ad71233883a6b55 (patch)
tree1d5f8a316a34d3e69174bc092f4e8accfa966cea /hw/qdev.c
parentedc92115a9300cca65946d5b2d56bec637a38f26 (diff)
qdev: Push "type" property up to Object
Now that Object is a type, add an instance_init function and push the "type" property from qdev to there. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 6a8f6bda2b..a9a9f891da 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -515,11 +515,6 @@ char* qdev_get_fw_dev_path(DeviceState *dev)
return strdup(path);
}
-static char *qdev_get_type(Object *obj, Error **errp)
-{
- return g_strdup(object_get_typename(obj));
-}
-
/**
* Legacy property handling
*/
@@ -638,7 +633,6 @@ static void device_initfn(Object *obj)
qdev_property_add_static(dev, prop, NULL);
}
- object_property_add_str(OBJECT(dev), "type", qdev_get_type, NULL, NULL);
qdev_prop_set_defaults(dev, qdev_get_props(dev));
}