summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2019-06-17 13:26:56 +0800
committerCommit Bot <commit-bot@chromium.org>2019-07-02 02:10:38 +0000
commit971d8de3d13bd7efc9b2199d926dfe1f9681aa3a (patch)
tree2134a1d5c51f26c7cfe28e1545078c339b64a201
parentcd551f358fb00379ff9b539a840b17a2c56e0b61 (diff)
downloadchrome-ec-971d8de3d13bd7efc9b2199d926dfe1f9681aa3a.tar.gz
chip/stm32/clock: Remove warning message about clock modules
It is not super-useful to print a warning message on every single boot about the fact that some module is not supported, and that takes up a bit of flash space. Let's remove it. BRANCH=none BUG=none TEST=none Change-Id: I04728aa5971675d8e93dcd397ebb259bfdd15bac Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1660520 Reviewed-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--chip/stm32/clock-stm32f0.c3
-rw-r--r--chip/stm32/clock-stm32f4.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/chip/stm32/clock-stm32f0.c b/chip/stm32/clock-stm32f0.c
index 2e7937514e..f4cd863fb1 100644
--- a/chip/stm32/clock-stm32f0.c
+++ b/chip/stm32/clock-stm32f0.c
@@ -426,9 +426,6 @@ void clock_enable_module(enum module_id module, int enable)
STM32_RCC_APB2ENR &= ~STM32_RCC_APB2ENR_ADCEN;
return;
}
-
- CPRINTS("Module %d is not supported for clock %s",
- module, enable ? "enable" : "disable");
}
void rtc_init(void)
diff --git a/chip/stm32/clock-stm32f4.c b/chip/stm32/clock-stm32f4.c
index 5c92ab7725..1d1eff91e0 100644
--- a/chip/stm32/clock-stm32f4.c
+++ b/chip/stm32/clock-stm32f4.c
@@ -234,9 +234,6 @@ void clock_enable_module(enum module_id module, int enable)
STM32_RCC_APB2ENR &= ~STM32_RCC_APB2ENR_ADC1EN;
return;
}
-
- CPRINTS("Module %d is not supported for clock %s",
- module, enable ? "enable" : "disable");
}
void rtc_init(void)