usbdev: set ep0 priv only not define CONFIG_USBDEV_COMPOSITE
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
9893bfd45a
commit
0cb8fdfe83
|
@ -1661,7 +1661,9 @@ static int cdcecm_bind(FAR struct usbdevclass_driver_s *driver,
|
|||
|
||||
uinfo("\n");
|
||||
|
||||
#ifndef CONFIG_CDCECM_COMPOSITE
|
||||
dev->ep0->priv = self;
|
||||
#endif
|
||||
|
||||
/* Preallocate control request */
|
||||
|
||||
|
|
Loading…
Reference in New Issue