mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
qdev: Clean up global properties
Now that global properties do not depend on buses anymore, set them directly in the device instance_init function. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
bce544740a
commit
4b3582b06b
2 changed files with 1 additions and 2 deletions
|
|
@ -440,7 +440,6 @@ DeviceState *qdev_device_add(QemuOpts *opts)
|
|||
/* create device, set properties */
|
||||
qdev = DEVICE(object_new(driver));
|
||||
qdev_set_parent_bus(qdev, bus);
|
||||
qdev_prop_set_globals(qdev);
|
||||
|
||||
id = qemu_opts_id(opts);
|
||||
if (id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue