Skip to content

Commit

Permalink
[bug] An error occurs when RT_USING_DFS_V2 is defined but RT-RT_USING…
Browse files Browse the repository at this point in the history
…_DFS_DEVFS is not defined
  • Loading branch information
yuqingli05 committed Dec 19, 2024
1 parent 552b281 commit 47a43a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/drivers/core/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include <rtdevice.h> /* for wqueue_init */
#endif /* RT_USING_POSIX_DEVIO */

#ifdef RT_USING_DFS_V2
#if((defined RT_USING_DFS_V2) && (defined RT_USING_DFS_DEVFS))
#include <devfs.h>
#endif /* RT_USING_DFS_V2 */
#endif /* RT_USING_DFS_V2 RT_USING_DFS_DEVFS */

#ifdef RT_USING_DEVICE

Expand Down Expand Up @@ -84,7 +84,7 @@ rt_err_t rt_device_register(rt_device_t dev,
rt_wqueue_init(&(dev->wait_queue));
#endif /* RT_USING_POSIX_DEVIO */

#ifdef RT_USING_DFS_V2
#if((defined RT_USING_DFS_V2) && (defined RT_USING_DFS_DEVFS))
dfs_devfs_device_add(dev);
#endif /* RT_USING_DFS_V2 */

Expand Down

0 comments on commit 47a43a6

Please sign in to comment.