summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-07-24 19:12:23 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-07-24 19:12:23 +0000
commit1df8072c08134c72327cd90c1e5fe858d139a66e (patch)
tree3d91f8392556e8b8638bf13f149221ce6e16b54a
parentde138033527908aab0b49950707a5eedec4e924d (diff)
downloadrockbox-1df8072c08134c72327cd90c1e5fe858d139a66e.tar.gz
rockbox-1df8072c08134c72327cd90c1e5fe858d139a66e.tar.bz2
rockbox-1df8072c08134c72327cd90c1e5fe858d139a66e.zip
imx233/fuze+: cleanup sd code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30206 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/imx233/sd-imx233.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/sd-imx233.c b/firmware/target/arm/imx233/sd-imx233.c
index b9114ae130..16b7b91219 100644
--- a/firmware/target/arm/imx233/sd-imx233.c
+++ b/firmware/target/arm/imx233/sd-imx233.c
@@ -46,7 +46,6 @@ static struct mutex sd_mutex;
static const char sd_thread_name[] = "sd";
static struct event_queue sd_queue;
static int sd_first_drive;
-static bool sd_initialized;
static int last_disk_activity;
static void sd_detect_callback(int ssp)
@@ -59,7 +58,6 @@ static void sd_detect_callback(int ssp)
queue_broadcast(SYS_HOTSWAP_INSERTED, 0);
else
queue_broadcast(SYS_HOTSWAP_EXTRACTED, 0);
- printf("sd_detect_callback(%d)", imx233_ssp_sdmmc_detect(SD_SSP));
imx233_ssp_sdmmc_setup_detect(SD_SSP, true, sd_detect_callback);
}
@@ -80,7 +78,6 @@ void sd_enable(bool on)
static int sd_init_card(void)
{
- printf("sd_init_card");
imx233_ssp_start(SD_SSP);
imx233_ssp_softreset(SD_SSP);
imx233_ssp_set_mode(SD_SSP, HW_SSP_CTRL1__SSP_MODE__SD_MMC);
@@ -120,7 +117,6 @@ static void sd_thread(void)
case SYS_HOTSWAP_INSERTED:
case SYS_HOTSWAP_EXTRACTED:
{
- int microsd_init = 1;
fat_lock(); /* lock-out FAT activity first -
prevent deadlocking via disk_mount that
would cause a reverse-order attempt with