aboutsummaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-09-19 14:48:41 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-09-23 12:51:08 +0200
commitbd2ba2752d860d5a0b4f328332c3e0b79d275de8 (patch)
treec7965f931e5544aef1acec303f20e8dcba836797 /hw/usb
parentdf9bb6660d922bcd4197791bb3b2c10e49ef55de (diff)
downloadqemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.zip
qemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.tar.gz
qemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.tar.bz2
usb-bus: remove "init" from USBDeviceClass struct
All usb-bus devices are realized by realize(), remove init callback function from USBDeviceClass struct. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/bus.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index 12881cb..b375293 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -113,8 +113,6 @@ static void usb_device_realize(USBDevice *dev, Error **errp)
if (klass->realize) {
klass->realize(dev, errp);
- } else if (klass->init) {
- klass->init(dev);
}
}