]> git.proxmox.com Git - qemu.git/commit - hw/usb/hcd-ehci-sysbus.c
usb/hcd-ehci-sysbus: Convert to QOM realize
authorAndreas Färber <afaerber@suse.de>
Thu, 6 Jun 2013 13:41:09 +0000 (15:41 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2013 06:23:10 +0000 (08:23 +0200)
commit08f4c90b2887a4499a2f199cf9410308f8ed298c
tree11b63974117015e279965f5db463bacc9c50432f
parent576156ffed72ab4feb0b752979db86ff8759a2a1
usb/hcd-ehci-sysbus: Convert to QOM realize

The SysBus qdev initfn merely calls SysBusDeviceClass::init, so we can
replace it with a realizefn already. This avoids getting into any initfn
ambiguity with the upcoming Faraday EHCI implementation.

Rename internal usb_ehci_initfn() to usb_ehci_realize() to allow to
return Errors from common initialization code as well.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci-pci.c
hw/usb/hcd-ehci-sysbus.c
hw/usb/hcd-ehci.c
hw/usb/hcd-ehci.h