diff options
author | Vic Yang <victoryang@chromium.org> | 2014-10-07 16:03:13 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-08 05:07:24 +0000 |
commit | 7f55a51ced7a714c1765116a0d279b9d97847b02 (patch) | |
tree | a9da26d5e33dffcf3fffb2e2588a792601600710 /chip/stm32/clock-stm32f.c | |
parent | 1eec1e3cd462b1be8a3063459a1119de79822ef1 (diff) | |
download | chrome-ec-7f55a51ced7a714c1765116a0d279b9d97847b02.tar.gz |
stm32f: stm32f0: guard hibernate function with CONFIG_HIBERNATE
If CONFIG_HIBERNATE is explicitly undefined for a platform, we shouldn't
try to hibernate.
BUG=chrome-os-partner:32727
TEST=None
BRANCH=None
Change-Id: Id0f93a3a694065478373e364d82589ff08e7d980
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222013
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/clock-stm32f.c')
-rw-r--r-- | chip/stm32/clock-stm32f.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/clock-stm32f.c b/chip/stm32/clock-stm32f.c index 301b4c09ef..76278c9c01 100644 --- a/chip/stm32/clock-stm32f.c +++ b/chip/stm32/clock-stm32f.c @@ -161,6 +161,7 @@ static void config_hispeed_clock(void) ; } +#ifdef CONFIG_HIBERNATE void __enter_hibernate(uint32_t seconds, uint32_t microseconds) { if (seconds || microseconds) @@ -180,6 +181,7 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds) while (1) ; } +#endif #ifdef CONFIG_LOW_POWER_IDLE |