hw/usb: Convert to qdev_realize()
commitc3585b600bae4e67867aac73e03a3edf38ec8f1f
authorMarkus Armbruster <armbru@redhat.com>
Tue, 19 Jan 2021 12:01:51 +0000 (19 13:01 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Jan 2021 13:51:35 +0000 (22 14:51 +0100)
tree9093fb46a53697a176c9eaf1c2bfc2037e01e457
parent268c02424b0b8078c15acdf73edbdeeb0dd80808
hw/usb: Convert to qdev_realize()

Device code shouldn't mess with QOM property "realized" since we have
proper interfaces (merge commit 6675a653).  Commit 8ddab8dd3d
"usb/hcd-xhci: Split pci wrapper for xhci base model" and commit
f00ff136ee "usb: hcd-xhci-sysbus: Attach xhci to sysbus device"
reintroduced two instances.  Clean them up.  Note that s->xhci is
a (bus-less) TYPE_XHCI device.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210119120151.53757-1-armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci-pci.c
hw/usb/hcd-xhci-sysbus.c