summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sd-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525.c')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index 86286fa985..70e0778d2b 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -229,7 +229,9 @@ static void enable_controller(bool on, const int drive)
CGU_IDE &= ~(IDE_INTERFACE_CLK); /* interface disable */
bitclr32(&CGU_PERI, CGU_NAF_CLOCK_ENABLE);
}
-#endif
+#else
+ (void) on;
+#endif /* ndef BOOTLOADER */
}
#if defined(HAVE_MULTIDRIVE) || defined(HAVE_HOTSWAP)
else
@@ -1002,4 +1004,3 @@ int sd_event(long id, intptr_t data)
return rc;
}
-