diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-10-01 21:41:44 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-01 21:41:44 +0000 |
commit | fc9aadaf8bb5eaa07e85264b6f27e001eb134180 (patch) | |
tree | 6c330d133cf282dfbcb09ecdebfdc06b579ec78a /firmware | |
parent | 4c428e077ce0fd9e906f69e3999ec0dae64d4067 (diff) | |
download | rockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.tar.gz rockbox-fc9aadaf8bb5eaa07e85264b6f27e001eb134180.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 3525203840..d55baf3eea 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -524,20 +524,14 @@ void ata_spindown(int seconds) | |||
524 | 524 | ||
525 | bool ata_disk_is_active(void) | 525 | bool ata_disk_is_active(void) |
526 | { | 526 | { |
527 | return true; | 527 | return false; /* FIXME: dirty, but makes idle poweroff work */ |
528 | } | 528 | } |
529 | 529 | ||
530 | int ata_standby(int time) | 530 | int ata_standby(int time) |
531 | { | 531 | { |
532 | int ret = 0; | ||
533 | |||
534 | mutex_lock(&ata_mtx); | ||
535 | |||
536 | /* ToDo: is there an equivalent? */ | ||
537 | (void)time; | 532 | (void)time; |
538 | 533 | ||
539 | mutex_unlock(&ata_mtx); | 534 | return 0; |
540 | return ret; | ||
541 | } | 535 | } |
542 | 536 | ||
543 | int ata_sleep(void) | 537 | int ata_sleep(void) |