From bd2ba2752d860d5a0b4f328332c3e0b79d275de8 Mon Sep 17 00:00:00 2001 From: Gonglei Date: Fri, 19 Sep 2014 14:48:41 +0800 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/usb/bus.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/usb/bus.c') 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); } } -- cgit v1.1