include/nuttx/fs/fs.h: register_mtddriver should depend on CONFIG_MTD not CONFIG_MTD_PARTITION

This commit is contained in:
Xiang Xiao 2018-11-09 09:29:41 -06:00 committed by Gregory Nutt
parent 712540b6a0
commit ae6797aabb

View File

@ -641,7 +641,7 @@ int unregister_blockdriver(FAR const char *path);
*
****************************************************************************/
#ifdef CONFIG_MTD_PARTITION
#ifdef CONFIG_MTD
int register_mtddriver(FAR const char *path, FAR struct mtd_dev_s *mtd,
mode_t mode, FAR void *priv);
#endif