summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-05-26 00:05:24 +0200
committerFrank Gevaerts <frank@gevaerts.be>2012-05-26 00:10:00 +0200
commit3f72ba0e3f34ac47a83a426e6a19b96045b842de (patch)
treea9f85055a772bccdab497e074136d9724a8d28f5
parent042314b440ab6eae3c0397f8b4f9f37938d3d30c (diff)
downloadrockbox-3f72ba0e3f34ac47a83a426e6a19b96045b842de.tar.gz
rockbox-3f72ba0e3f34ac47a83a426e6a19b96045b842de.tar.bz2
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.h8
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 {
DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1),
};
-#define USING_STORAGE_CALLBACK ((CONFIG_STORAGE & STORAGE_NAND) \
- && (CONFIG_NAND == NAND_IFP7XX)) \
- && !defined(BOOTLOADER) || \
- (CONFIG_PLATFORM & PLATFORM_HOSTED)
+/* Enable storage callbacks everywhere except for bootloaders. Both
+ * hosted and native targets need this.
+ */
+#define USING_STORAGE_CALLBACK !defined(BOOTLOADER)
extern void register_storage_idle_func(void (*function)(void *data));
#if USING_STORAGE_CALLBACK