summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c
index c34f74a202..a80e3ec919 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c
@@ -34,7 +34,7 @@ static long last_disk_activity = -1;
static tCardInfo card[NUM_DRIVES];
static struct mutex sd_mtx;
-static struct semaphore sd_wakeup;
+//static struct semaphore sd_wakeup;
static int use_4bit[NUM_DRIVES];
static int num_6[NUM_DRIVES];
@@ -1229,7 +1229,7 @@ int sd_init(void)
if(!inited)
{
- semaphore_init(&sd_wakeup, 1, 0);
+// semaphore_init(&sd_wakeup, 1, 0);
mutex_init(&sd_mtx);
inited = true;
}
@@ -1457,6 +1457,7 @@ bool sd_present(const int drive)
#ifdef CONFIG_STORAGE_MULTI
int sd_num_drives(int first_drive)
{
+ (void)first_drive;
return NUM_DRIVES;
}
#endif /* CONFIG_STORAGE_MULTI */