diff options
Diffstat (limited to 'firmware/export/ata_idle_notify.h')
-rw-r--r-- | firmware/export/ata_idle_notify.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index 1577b2fb19..a3fc4758b1 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h | |||
@@ -43,10 +43,10 @@ enum { | |||
43 | DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), | 43 | DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), |
44 | }; | 44 | }; |
45 | 45 | ||
46 | #define USING_STORAGE_CALLBACK ((CONFIG_STORAGE & STORAGE_NAND) \ | 46 | /* Enable storage callbacks everywhere except for bootloaders. Both |
47 | && (CONFIG_NAND == NAND_IFP7XX)) \ | 47 | * hosted and native targets need this. |
48 | && !defined(BOOTLOADER) || \ | 48 | */ |
49 | (CONFIG_PLATFORM & PLATFORM_HOSTED) | 49 | #define USING_STORAGE_CALLBACK !defined(BOOTLOADER) |
50 | 50 | ||
51 | extern void register_storage_idle_func(void (*function)(void *data)); | 51 | extern void register_storage_idle_func(void (*function)(void *data)); |
52 | #if USING_STORAGE_CALLBACK | 52 | #if USING_STORAGE_CALLBACK |