diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-06-10 07:32:16 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-06-15 22:05:28 +0200 |
commit | 590ce74a08d5b4fb39ac165a4fb68bd07e6d2b6c (patch) | |
tree | 22d63bcd8ac233c82139e9dd4f5ddee83f962ac3 /chardev | |
parent | 32aaaebe5665a75f8be8d76ba3ecfcf87627858b (diff) |
usb: Convert uses of usb_create()
Replace
dev = usb_create(bus, type_name);
...
object_property_set_bool(OBJECT(dev), true, "realized", &err);
by
dev = isa_new(type_name);
...
usb_realize_and_unref(dev, bus, &err);
Recent commit "qdev: New qdev_new(), qdev_realize(), etc." explains
why.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-28-armbru@redhat.com>
Diffstat (limited to 'chardev')
0 files changed, 0 insertions, 0 deletions