diff options
Diffstat (limited to 'hw/core/gpio.c')
-rw-r--r-- | hw/core/gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/core/gpio.c b/hw/core/gpio.c index 80d07a6..6e32a8e 100644 --- a/hw/core/gpio.c +++ b/hw/core/gpio.c @@ -121,8 +121,7 @@ void qdev_connect_gpio_out_named(DeviceState *dev, const char *name, int n, name ? name : "unnamed-gpio-out", n); if (input_pin && !OBJECT(input_pin)->parent) { /* We need a name for object_property_set_link to work */ - object_property_add_child(container_get(qdev_get_machine(), - "/unattached"), + object_property_add_child(machine_get_container("unattached"), "non-qdev-gpio[*]", OBJECT(input_pin)); } object_property_set_link(OBJECT(dev), propname, |