summary refs log tree commit diff stats
path: root/system/ioport.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/ioport.c')
-rw-r--r--system/ioport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/ioport.c b/system/ioport.c
index fd551d0375..55c2a75239 100644
--- a/system/ioport.c
+++ b/system/ioport.c
@@ -258,7 +258,7 @@ static void portio_list_add_1(PortioList *piolist,
     object_ref(&mrpio->mr);
     object_unparent(OBJECT(&mrpio->mr));
     if (!piolist->owner) {
-        owner = container_get(qdev_get_machine(), "/unattached");
+        owner = machine_get_container("unattached");
     } else {
         owner = piolist->owner;
     }