forked from len0rd/rockbox
sd_first_drive is only used when HAVE_HOTSWAP is defined, so add appropriate #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21985 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b6d92e8a1b
commit
534cd216a0
1 changed files with 6 additions and 0 deletions
|
@ -180,7 +180,9 @@ static const char sd_thread_name[] = "ata/sd";
|
||||||
static struct mutex sd_mtx SHAREDBSS_ATTR;
|
static struct mutex sd_mtx SHAREDBSS_ATTR;
|
||||||
static struct event_queue sd_queue;
|
static struct event_queue sd_queue;
|
||||||
|
|
||||||
|
#ifdef HAVE_HOTSWAP
|
||||||
static int sd_first_drive = 0;
|
static int sd_first_drive = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Posted when card plugged status has changed */
|
/* Posted when card plugged status has changed */
|
||||||
#define SD_HOTSWAP 1
|
#define SD_HOTSWAP 1
|
||||||
|
@ -1359,8 +1361,12 @@ bool sd_present(IF_MD_NONVOID(int drive))
|
||||||
#ifdef CONFIG_STORAGE_MULTI
|
#ifdef CONFIG_STORAGE_MULTI
|
||||||
int sd_num_drives(int first_drive)
|
int sd_num_drives(int first_drive)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_HOTSWAP
|
||||||
/* Store which logical drive number(s) we have been assigned */
|
/* Store which logical drive number(s) we have been assigned */
|
||||||
sd_first_drive = first_drive;
|
sd_first_drive = first_drive;
|
||||||
|
#else
|
||||||
|
(void)first_drive;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MULTIDRIVE
|
#ifdef HAVE_MULTIDRIVE
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue