diff options
Diffstat (limited to 'drivers/usb/gadget/f_fs.c')
-rw-r--r-- | drivers/usb/gadget/f_fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index 19fffccc370d..c161a9aaeb7e 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c | |||
@@ -1544,7 +1544,8 @@ static int ffs_func_eps_enable(struct ffs_function *func) | |||
1544 | ds = ep->descs[ep->descs[1] ? 1 : 0]; | 1544 | ds = ep->descs[ep->descs[1] ? 1 : 0]; |
1545 | 1545 | ||
1546 | ep->ep->driver_data = ep; | 1546 | ep->ep->driver_data = ep; |
1547 | ret = usb_ep_enable(ep->ep, ds); | 1547 | ep->ep->desc = ds; |
1548 | ret = usb_ep_enable(ep->ep); | ||
1548 | if (likely(!ret)) { | 1549 | if (likely(!ret)) { |
1549 | epfile->ep = ep; | 1550 | epfile->ep = ep; |
1550 | epfile->in = usb_endpoint_dir_in(ds); | 1551 | epfile->in = usb_endpoint_dir_in(ds); |