summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod/power-ipod.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/power-ipod.c')
-rw-r--r--firmware/target/arm/ipod/power-ipod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c
index 76c9fdf5ff..af1ac9fc87 100644
--- a/firmware/target/arm/ipod/power-ipod.c
+++ b/firmware/target/arm/ipod/power-ipod.c
@@ -42,6 +42,7 @@ void power_init(void)
#endif
}
+#if CONFIG_CHARGING
bool charger_inserted(void)
{
#if defined(IPOD_VIDEO)
@@ -60,6 +61,7 @@ bool charger_inserted(void)
bool charging_state(void) {
return (GPIOB_INPUT_VAL & 0x01)?false:true;
}
+#endif /* CONFIG_CHARGING */
void ide_power_enable(bool on)