diff options
| author | Gonglei | 2014-09-19 08:48:41 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2014-09-23 12:51:08 +0200 |
| commit | bd2ba2752d860d5a0b4f328332c3e0b79d275de8 (patch) | |
| tree | c7965f931e5544aef1acec303f20e8dcba836797 /include | |
| parent | usb-mtp: convert init to realize (diff) | |
| download | qemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.tar.gz qemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.tar.xz qemu-bd2ba2752d860d5a0b4f328332c3e0b79d275de8.zip | |
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 'include')
| -rw-r--r-- | include/hw/usb.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 612f09f8c1..8ffbba2174 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -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; |
