summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 1491d2376e..4e41ef2b1f 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -610,7 +610,7 @@ void ata_sleep(void)
610 610
611void ata_sleepnow(void) 611void ata_sleepnow(void)
612{ 612{
613 if (!spinup && !sleeping && !ata_mtx.locked) 613 if (!spinup && !sleeping && !ata_mtx.locked && initialized)
614 { 614 {
615 call_ata_idle_notifys(false); 615 call_ata_idle_notifys(false);
616 ata_perform_sleep(); 616 ata_perform_sleep();