driver/usersock_dev: Check CONFIG_NET_USRSOCK_DEVICE instead CONFIG_NET_USRSOCK

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-02 05:04:57 +08:00 committed by Petro Karashchenko
parent e9ccab2db3
commit dbb3c768c3
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
****************************************************************************/
#include <nuttx/config.h>
#if defined(CONFIG_NET) && defined(CONFIG_NET_USRSOCK)
#if defined(CONFIG_NET_USRSOCK_DEVICE)
#include <sys/types.h>
#include <inttypes.h>
@ -566,4 +566,4 @@ void usrsock_register(void)
&g_usrsockdev);
}
#endif /* CONFIG_NET && CONFIG_NET_USRSOCK */
#endif /* CONFIG_NET_USRSOCK_DEVICE */