]> git.proxmox.com Git - mirror_qemu.git/commitdiff
usb-bus: remove "init" from USBDeviceClass struct
authorGonglei <arei.gonglei@huawei.com>
Fri, 19 Sep 2014 06:48:41 +0000 (14:48 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Sep 2014 10:51:08 +0000 (12:51 +0200)
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>
hw/usb/bus.c
include/hw/usb.h

index 12881cbdd1b2ad4ded4bee1613fd1754d01527f4..b375293529c1caf0c25570b5b4dc611f23c1f016 100644 (file)
@@ -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);
     }
 }
 
index 612f09f8c15c62a11cf40b9dc8d8a245a268e760..8ffbba21741863be248c3048dc68a0da7b3ef349 100644 (file)
@@ -273,8 +273,6 @@ typedef void (*USBDeviceUnrealize)(USBDevice *dev, Error **errp);
 typedef struct USBDeviceClass {
     DeviceClass parent_class;
 
-    int (*init)(USBDevice *dev);
-
     USBDeviceRealize realize;
     USBDeviceUnrealize unrealize;