summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-01 21:41:44 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-01 21:41:44 +0000
commitfc9aadaf8bb5eaa07e85264b6f27e001eb134180 (patch)
tree6c330d133cf282dfbcb09ecdebfdc06b579ec78a
parent4c428e077ce0fd9e906f69e3999ec0dae64d4067 (diff)
downloadrockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.zip
rockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.tar.gz
rockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.tar.bz2
rockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.tar.xz
Some cleanup, and a quick fix to make battery status reading and idle poweroff work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5149 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/ata_mmc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index 3525203..d55baf3 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -524,20 +524,14 @@ void ata_spindown(int seconds)
bool ata_disk_is_active(void)
{
- return true;
+ return false; /* FIXME: dirty, but makes idle poweroff work */
}
int ata_standby(int time)
{
- int ret = 0;
-
- mutex_lock(&ata_mtx);
-
- /* ToDo: is there an equivalent? */
(void)time;
- mutex_unlock(&ata_mtx);
- return ret;
+ return 0;
}
int ata_sleep(void)