summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/mpio/ata-mpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/mpio/ata-mpio.c')
-rw-r--r--firmware/target/coldfire/mpio/ata-mpio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/ata-mpio.c b/firmware/target/coldfire/mpio/ata-mpio.c
index af082640bf..94a572a0e8 100644
--- a/firmware/target/coldfire/mpio/ata-mpio.c
+++ b/firmware/target/coldfire/mpio/ata-mpio.c
@@ -39,7 +39,9 @@ void ata_reset(void)
void ata_enable(bool on)
{
+#ifndef BOOTLOADER
static bool init = true;
+#endif
/* Ide power toggling is a nasty hack to allow USB bridge operation
* in rockbox. For some reason GL811E bridge doesn't like the state
@@ -59,8 +61,8 @@ void ata_enable(bool on)
sleep(1);
ide_power_enable(true);
}
-#endif
init = false;
+#endif
}
else
{