summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/ata_idle_notify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c
index ee9f3c035f..a50866dcdc 100644
--- a/firmware/ata_idle_notify.c
+++ b/firmware/ata_idle_notify.c
@@ -25,6 +25,7 @@
#include "kernel.h"
#include "string.h"
+#if USING_STORAGE_CALLBACK
static void wrapper(unsigned short id, void *ev_data, void *user_data)
{
(void)id;
@@ -32,6 +33,7 @@ static void wrapper(unsigned short id, void *ev_data, void *user_data)
void (*func)(void) = user_data;
func();
}
+#endif
void register_storage_idle_func(void (*function)(void))
{