Sansa AMS: sd_enable() isn't available in the bootloader

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19281 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2008-12-01 08:18:22 +00:00
parent ce851c0c67
commit a783453ff9

View file

@ -406,7 +406,9 @@ int sd_init(void)
#endif
/* init mutex */
#ifndef BOOTLOADER
sd_enable(false);
#endif
mutex_init(&sd_mtx);
@ -496,7 +498,9 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
#endif
mutex_lock(&sd_mtx);
#ifndef BOOTLOADER
sd_enable(true);
#endif
#ifdef HAVE_MULTIVOLUME
if (drive != 0 && !card_detect_target())
@ -583,7 +587,9 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
while (1)
{
#ifndef BOOTLOADER
sd_enable(false);
#endif
mutex_unlock(&sd_mtx);
return ret;