stm32h7:stm32_sdmmc fix compiler error when SDMMC2 is enabled

This commit is contained in:
David Sidrane 2020-06-02 14:11:22 -07:00 committed by patacongo
parent 0da3400009
commit 698ac72dae

View File

@ -614,8 +614,13 @@ struct stm32_dev_s g_sdmmcdev2 =
.attach = stm32_attach,
.sendcmd = stm32_sendcmd,
.blocksetup = stm32_blocksetup,
#if defined(CONFIG_STM32H7_SDMMC_IDMA)
.recvsetup = stm32_dmarecvsetup,
.sendsetup = stm32_dmasendsetup,
#else
.recvsetup = stm32_recvsetup,
.sendsetup = stm32_sendsetup,
#endif
.cancel = stm32_cancel,
.waitresponse = stm32_waitresponse,
.recv_r1 = stm32_recvshortcrc,