[PATCH] usb gadget: allow drivers support speeds higher than full speed

This patch removes limitation which prevents use of drivers that support
speeds different that full speed.

Signed-off-by: Milan Svoboda <msvoboda@ra.rockwell.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Milan Svoboda 2006-05-29 03:34:00 -07:00 committed by Greg Kroah-Hartman
parent ca094f1186
commit 7c0642c196

View File

@ -1585,7 +1585,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
int retval; int retval;
if (!driver if (!driver
|| driver->speed != USB_SPEED_FULL || driver->speed < USB_SPEED_FULL
|| !driver->bind || !driver->bind
|| !driver->unbind || !driver->unbind
|| !driver->disconnect || !driver->disconnect