Skip to content

Commit c93f0a7

Browse files
committed
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.
1 parent 1ad92d4 commit c93f0a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/pkg/fatfs_vfs/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static vfs_mount_t _test_vfs_mount = {
6464

6565
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
6666
/* mtd devices are provided in the board's board_init.c*/
67-
extern mtd_dev_t *mtd0;
6867
#endif
6968

7069
#if defined(MODULE_MTD_SDCARD)
@@ -409,7 +408,7 @@ int main(void)
409408
#endif
410409

411410
#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
412-
fatfs.dev = mtd0;
411+
fatfs.dev = mtd_dev_get(0);
413412
#endif
414413

415414
#if defined(MODULE_MTD_SDCARD)

0 commit comments

Comments
 (0)