diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-05-26 00:05:24 +0200 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-05-26 00:10:00 +0200 |
commit | 3f72ba0e3f34ac47a83a426e6a19b96045b842de (patch) | |
tree | a9f85055a772bccdab497e074136d9724a8d28f5 | |
parent | 042314b440ab6eae3c0397f8b4f9f37938d3d30c (diff) | |
download | rockbox-3f72ba0e3f34ac47a83a426e6a19b96045b842de.tar.gz rockbox-3f72ba0e3f34ac47a83a426e6a19b96045b842de.zip |
Fix broken logic for enabling USING_STORAGE_CALLBACK.
The logic got broken by 6b8330d2.
Since the ifp700 port is basically unmaintained and unfinished and doesn't
build anyway, we can remove the special-casing for it. This simplifies the
logic to "hosted or native, except for bootloaders", which simplifies
further to "not bootloaders".
Fixes FS#12685
Change-Id: Iaaad534067da22b74bf647aa58dcbb678bbc5f70
-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 |