forked from len0rd/rockbox
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:
parent
4be366f4b0
commit
a1e557bbdd
1 changed files with 3 additions and 2 deletions
|
@ -865,7 +865,7 @@ int mmc_init(void)
|
||||||
int ret = sdmmc_init();
|
int ret = sdmmc_init();
|
||||||
if(ret < 0) return ret;
|
if(ret < 0) return ret;
|
||||||
|
|
||||||
_sd_num_drives = 0;
|
_mmc_num_drives = 0;
|
||||||
for(unsigned drive = 0; drive < SDMMC_NUM_DRIVES; drive++)
|
for(unsigned drive = 0; drive < SDMMC_NUM_DRIVES; drive++)
|
||||||
if(SDMMC_MODE(drive) == MMC_MODE)
|
if(SDMMC_MODE(drive) == MMC_MODE)
|
||||||
{
|
{
|
||||||
|
@ -936,8 +936,9 @@ bool mmc_disk_is_active(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mmc_usb_active(void)
|
bool mmc_usb_active(int delayticks)
|
||||||
{
|
{
|
||||||
|
(void) delayticks;
|
||||||
return mmc_disk_is_active();
|
return mmc_disk_is_active();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue