summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index 17b37821b2..3bdc302ada 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -170,6 +170,8 @@ static unsigned _mmc_num_drives;
170static int mmc_map[SDMMC_NUM_DRIVES]; /* mmc->sdmmc map */ 170static int mmc_map[SDMMC_NUM_DRIVES]; /* mmc->sdmmc map */
171#endif 171#endif
172 172
173static int init_drive(int drive);
174
173/* WARNING NOTE BUG FIXME 175/* WARNING NOTE BUG FIXME
174 * There are three numbering schemes involved in the driver: 176 * There are three numbering schemes involved in the driver:
175 * - the sdmmc indexes into sdmmc_config[] 177 * - the sdmmc indexes into sdmmc_config[]
@@ -519,7 +521,7 @@ static int transfer_sectors(int drive, unsigned long start, int count, void *buf
519#if CONFIG_STORAGE & STORAGE_SD 521#if CONFIG_STORAGE & STORAGE_SD
520 if(SDMMC_MODE(drive) == SD_MODE && SDMMC_INFO(drive).initialized <= 0) 522 if(SDMMC_MODE(drive) == SD_MODE && SDMMC_INFO(drive).initialized <= 0)
521 { 523 {
522 ret = init_sd_card(drive); 524 ret = init_drive(drive);
523 if(SDMMC_INFO(drive).initialized <= 0) 525 if(SDMMC_INFO(drive).initialized <= 0)
524 goto Lend; 526 goto Lend;
525 } 527 }