From 1ad92d458f6278abdc2a4497572d9c10f2c34916 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 7 Dec 2023 15:28:07 +0100 Subject: [PATCH] tests/pkg/fatfs: 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/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pkg/fatfs/main.c b/tests/pkg/fatfs/main.c index 9c35925aa9..1ea15caaa5 100644 --- a/tests/pkg/fatfs/main.c +++ b/tests/pkg/fatfs/main.c @@ -52,7 +52,6 @@ FATFS fat_fs; /* FatFs work area needed for each volume */ #ifdef MODULE_MTD_NATIVE /* mtd device for native is provided in boards/native/board_init.c */ -extern mtd_dev_t *mtd0; mtd_dev_t *fatfs_mtd_devs[1]; #elif MODULE_MTD_SDCARD #include "mtd_sdcard.h" @@ -400,7 +399,7 @@ int main(void) #endif #if MODULE_MTD_NATIVE - fatfs_mtd_devs[0] = mtd0; + fatfs_mtd_devs[0] = mtd_dev_get(0); #elif MODULE_MTD_SDCARD for (unsigned int i = 0; i < SDCARD_SPI_NUM; i++){ mtd_sdcard_devs[i].base.driver = &mtd_sdcard_driver;