aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/qdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 1023c6c37a..5175fe17fd 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -156,7 +156,7 @@ void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value)
{
DeviceProperty *prop;
- prop = create_prop(dev, name, PROP_TYPE_INT);
+ prop = create_prop(dev, name, PROP_TYPE_PTR);
prop->value.ptr = value;
}