summaryrefslogtreecommitdiffstats
path: root/firmware/ata_idle_notify.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-03-14 23:43:45 +0100
committerThomas Martitz <kugel@rockbox.org>2014-03-14 23:43:45 +0100
commit361aa9263d51dcd3f8951b0da31aba77758726a9 (patch)
tree617ee1d90c903b4b7f28307b6f7035019d60ea6b /firmware/ata_idle_notify.c
parent470989bd708d9a425dbbf2d83b8fcbd0a8d0f488 (diff)
downloadrockbox-361aa9263d51dcd3f8951b0da31aba77758726a9.tar.gz
rockbox-361aa9263d51dcd3f8951b0da31aba77758726a9.tar.bz2
rockbox-361aa9263d51dcd3f8951b0da31aba77758726a9.zip
Fix reds.
Change-Id: I4f065a5b9f96df4d70ee8bb2836effc9b97b01fa
Diffstat (limited to 'firmware/ata_idle_notify.c')
-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))
{