imx233: fix horrible sd/mmc bug

The wrong variable was used to enumerate mmc drives. Also fix incorrect
function prototype.

Change-Id: Idd8dca7685bbc2bc4744b7b29e948f0ca2f56cc9
This commit is contained in:
Amaury Pouly 2013-09-06 18:22:34 +02:00
parent 4be366f4b0
commit a1e557bbdd

View file

@ -865,7 +865,7 @@ int mmc_init(void)
int ret = sdmmc_init();
if(ret < 0) return ret;
_sd_num_drives = 0;
_mmc_num_drives = 0;
for(unsigned drive = 0; drive < SDMMC_NUM_DRIVES; drive++)
if(SDMMC_MODE(drive) == MMC_MODE)
{
@ -936,8 +936,9 @@ bool mmc_disk_is_active(void)
return false;
}
bool mmc_usb_active(void)
bool mmc_usb_active(int delayticks)
{
(void) delayticks;
return mmc_disk_is_active();
}