From c93f0a70d451bcbbf8e5dd9ef94f7775d98aa02b Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 7 Dec 2023 15:28:52 +0100 Subject: [PATCH] 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. --- tests/pkg/fatfs_vfs/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)