From cf1368145af6e4b84421dd7331ad0f4c45d419a1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 29 Nov 2002 07:05:27 +0000 Subject: HAVE_ATA_POWER_OFF is now defined and used if the platform has support for that control git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 216bf180bf..173dab9be3 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -83,7 +83,7 @@ bool old_recorder = false; static bool sleeping = false; static int sleep_timeout = 5*HZ; static bool poweroff = false; -#ifdef ARCHOS_RECORDER +#ifdef HAVE_ATA_POWER_OFF static int poweroff_timeout = 2*HZ; #endif static char ata_stack[DEFAULT_STACK_SIZE]; @@ -411,6 +411,7 @@ void ata_spindown(int seconds) sleep_timeout = seconds * HZ; } +#ifdef HAVE_ATA_POWER_OFF void ata_poweroff(bool enable) { if (enable) @@ -418,6 +419,7 @@ void ata_poweroff(bool enable) else poweroff_timeout = 0; } +#endif bool ata_disk_is_active(void) { -- cgit v1.2.3