[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 21/26] usb-bus: remove "init" from USBDeviceClass str
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 21/26] usb-bus: remove "init" from USBDeviceClass struct |
Date: |
Tue, 23 Sep 2014 14:13:32 +0200 |
From: Gonglei <address@hidden>
All usb-bus devices are realized by realize(),
remove init callback function from USBDeviceClass struct.
Signed-off-by: Gonglei <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/bus.c | 2 --
include/hw/usb.h | 2 --
2 files changed, 4 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);
}
}
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 612f09f..8ffbba2 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;
--
1.8.3.1
- [Qemu-devel] [PULL 00/26] usb patch queue, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 07/26] libusb: using error_report instead of fprintf, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 12/26] dev-uas: using error_report instead of fprintf, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 23/26] usb-serial: only check speed once at realize time, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 19/26] usb-redir: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 21/26] usb-bus: remove "init" from USBDeviceClass struct,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 22/26] usb-bus: introduce a wrapper function to check speed, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 18/26] usb-audio: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 13/26] dev-bluetooth: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 15/26] usb-ccid: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 14/26] dev-serial: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 16/26] dev-hid: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 20/26] usb-mtp: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 04/26] usb-bus: convert USBDeviceClass init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 17/26] dev-wacom: convert init to realize, Gerd Hoffmann, 2014/09/23
- [Qemu-devel] [PULL 08/26] usb-hub: convert init to realize, Gerd Hoffmann, 2014/09/23