esp32: Remove hard-coded SPI port for MMC/SD SPI

This commit is contained in:
Alan Carvalho de Assis 2022-06-23 22:12:36 -03:00 committed by Gustavo Henrique Nihei
parent f2d1f25202
commit 87a2f35c2c
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ int esp32_mmcsd_initialize(int minor)
mcinfo("INFO: Initializing mmcsd card\n");
spi = esp32_spibus_initialize(2);
spi = esp32_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
if (spi == NULL)
{
mcerr("ERROR: Failed to initialize SPI port %d\n", 2);

View File

@ -64,7 +64,7 @@ int esp32_mmcsd_initialize(int minor)
mcinfo("INFO: Initializing mmcsd card\n");
spi = esp32_spibus_initialize(2);
spi = esp32_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
if (spi == NULL)
{
mcerr("ERROR: Failed to initialize SPI port %d\n", 2);