aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <balrog@zabor.org>2008-11-19 17:10:53 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:10:53 +0000
commit563c3d38b21d913f695d0d35c265a12348ea9f1f (patch)
treeabf78ec46ca83e8ec6b3f17b990b9d3b6e6a3677 /drivers/usb/gadget/composite.c
parent5d54c8a33a8997030c17aa38fe8e513ceae21b5e (diff)
Make-s3c2410-gadget-initialize-with-no-debugfs
I needed the following two changes for g_ether to work with last week's stable-tracking and no CONFIG_DEBUG_FS. I don't know if they're related to moko patches, if not I can send them upstream isntead. BTW I need to boot off the SD card now because mtd only returns CRC errors and doesn't mount. Does it work for other people? Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index f2da0269e1b..b13c47cf6b2 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1045,7 +1045,11 @@ composite_resume(struct usb_gadget *gadget)
/*-------------------------------------------------------------------------*/
static struct usb_gadget_driver composite_driver = {
+#ifdef CONFIG_USB_GADGET_DUALSPEED
.speed = USB_SPEED_HIGH,
+#else
+ .speed = USB_SPEED_FULL,
+#endif
.bind = composite_bind,
.unbind = __exit_p(composite_unbind),