|
@@ -463,7 +463,7 @@ static int check_fdc(Object *obj, void *opaque)
|
|
}
|
|
}
|
|
|
|
|
|
static const char * const fdc_container_path[] = {
|
|
static const char * const fdc_container_path[] = {
|
|
- "/unattached", "/peripheral", "/peripheral-anon"
|
|
|
|
|
|
+ "unattached", "peripheral", "peripheral-anon"
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -477,7 +477,7 @@ static ISADevice *pc_find_fdc0(void)
|
|
CheckFdcState state = { 0 };
|
|
CheckFdcState state = { 0 };
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(fdc_container_path); i++) {
|
|
for (i = 0; i < ARRAY_SIZE(fdc_container_path); i++) {
|
|
- container = container_get(qdev_get_machine(), fdc_container_path[i]);
|
|
|
|
|
|
+ container = machine_get_container(fdc_container_path[i]);
|
|
object_child_foreach(container, check_fdc, &state);
|
|
object_child_foreach(container, check_fdc, &state);
|
|
}
|
|
}
|
|
|
|
|