diff --git a/tests/pkg/fatfs_vfs/main.c b/tests/pkg/fatfs_vfs/main.c index d25272b761..f7f4e4050d 100644 --- a/tests/pkg/fatfs_vfs/main.c +++ b/tests/pkg/fatfs_vfs/main.c @@ -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)