mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
f66d4a001c
When uninitializing cdcacm via a boardctl ioctl, use the instance number instead of direct pointer to the driver. The reason for this is, that in CONFIG_BUILD_KERNEL the applications sercon and serdis can't store the pointer; they are separate processes which get killed. The cdcacm driver will search up the driver from the file system when the direct pointer is not given. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>