summaryrefslogtreecommitdiff
path: root/firmware/ata_idle_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/ata_idle_notify.c')
-rw-r--r--firmware/ata_idle_notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c
index a97c3538da..ab2233da1f 100644
--- a/firmware/ata_idle_notify.c
+++ b/firmware/ata_idle_notify.c
@@ -26,7 +26,7 @@
26void register_ata_idle_func(ata_idle_notify function) 26void register_ata_idle_func(ata_idle_notify function)
27{ 27{
28#if USING_ATA_CALLBACK 28#if USING_ATA_CALLBACK
29 add_event(DISK_EVENT_SPINUP, function); 29 add_event(DISK_EVENT_SPINUP, true, function);
30#else 30#else
31 function(); /* just call the function now */ 31 function(); /* just call the function now */
32/* this _may_ cause problems later if the calling function 32/* this _may_ cause problems later if the calling function
@@ -55,7 +55,7 @@ bool call_ata_idle_notifys(bool force)
55 } 55 }
56 lock_until = current_tick + 30*HZ; 56 lock_until = current_tick + 30*HZ;
57 57
58 send_event(DISK_EVENT_SPINUP, true, NULL); 58 send_event(DISK_EVENT_SPINUP, NULL);
59 59
60 return true; 60 return true;
61} 61}