1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:09:46 +01:00

tests/pkg/fatfs_vfs: replace external mtd0 declaration

Since the `extern mtd_dev_t *` declarations were removed from board definitions, `mtd_dev_get` has to be used instead.
This commit is contained in:
Gunar Schorcht 2023-12-07 15:28:52 +01:00
parent 1ad92d458f
commit c93f0a70d4

View File

@ -64,7 +64,6 @@ static vfs_mount_t _test_vfs_mount = {
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
/* mtd devices are provided in the board's board_init.c*/
extern mtd_dev_t *mtd0;
#endif
#if defined(MODULE_MTD_SDCARD)
@ -409,7 +408,7 @@ int main(void)
#endif
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
fatfs.dev = mtd0;
fatfs.dev = mtd_dev_get(0);
#endif
#if defined(MODULE_MTD_SDCARD)