diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c b/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c index a209fc1c79..14d557c7b6 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c @@ -63,7 +63,7 @@ int board_usbmsc_initialize(int port) */ #ifndef CONFIG_NSH_BUILTIN_APPS - return stm32_sdinitialize(CONFIG_SYSTEM_USBMSC_DEVMINOR1); + return stm32_mmcsd_initialize(2, CONFIG_SYSTEM_USBMSC_DEVMINOR1); #else return OK; #endif