summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/sandisk/power-c200_e200.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/sandisk/power-c200_e200.c')
-rw-r--r--firmware/target/arm/sandisk/power-c200_e200.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/target/arm/sandisk/power-c200_e200.c b/firmware/target/arm/sandisk/power-c200_e200.c
index da86d97d26..40aa792dce 100644
--- a/firmware/target/arm/sandisk/power-c200_e200.c
+++ b/firmware/target/arm/sandisk/power-c200_e200.c
@@ -69,12 +69,14 @@ void ide_power_enable(bool on)
}
#if CONFIG_TUNER
+
/** Tuner **/
static bool powered = false;
-bool tuner_power_nolock(bool status)
+bool tuner_power(bool status)
{
bool old_status;
+ lv24020lp_lock();
old_status = powered;
@@ -128,16 +130,8 @@ bool tuner_power_nolock(bool status)
powered = status;
}
- return old_status;
-}
-
-bool tuner_power(bool status)
-{
- bool old_status;
- lv24020lp_lock();
- old_status = tuner_power_nolock(status);
lv24020lp_unlock();
return old_status;
}
-#endif
+#endif /* CONFIG_TUNER */