usbdev: set ep0 priv only not define CONFIG_USBDEV_COMPOSITE

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-07-06 14:48:51 +08:00 committed by Alan Carvalho de Assis
parent 9893bfd45a
commit 0cb8fdfe83
1 changed files with 2 additions and 0 deletions

View File

@ -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 */