From 806b60248218bd5f74a8b070f5a99a864e8e51c6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 31 Aug 2009 14:23:59 +0200 Subject: qdev/usb: add usb bus support to qdev, convert drivers. * Add USBBus. * Add USBDeviceInfo, move device callbacks here. * Add usb-qdev helper functions. * Switch drivers to qdev. TODO: * make the rest of qemu aware of usb busses and kill the FIXMEs added by this patch. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/usb-musb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/usb-musb.c') diff --git a/hw/usb-musb.c b/hw/usb-musb.c index 664f4676d6..b23ed3f313 100644 --- a/hw/usb-musb.c +++ b/hw/usb-musb.c @@ -590,7 +590,7 @@ static inline void musb_packet(MUSBState *s, MUSBEndPoint *ep, ep->packey[dir].complete_opaque = ep; if (s->port.dev) - ret = s->port.dev->handle_packet(s->port.dev, &ep->packey[dir]); + ret = s->port.dev->info->handle_packet(s->port.dev, &ep->packey[dir]); else ret = USB_RET_NODEV; -- cgit v1.2.3