diff options
author | Anton Staaf <robotboy@chromium.org> | 2011-07-25 11:46:42 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:11 -0700 |
commit | 0ee15331c1303bff9a830ef8cce3d81666df01eb (patch) | |
tree | 146af906a6d8c4b2de37c63629af8d5a2838fafb /arch/arm/cpu/armv7/tegra2 | |
parent | 060e61562de8a27401c72998c4f52eb52274f29d (diff) |
assert: Rely on the compilers dead code removal
By always emitting the assert code we ensure that constructs passed
to assert will be checked by the compiler. This also ensures that
functions that are only used in asserts aren't flagged as unused
when DEBUG is not defined.
BUG=chromium-os:17999
TEST=Build firmware and boot to ChromiumOS on Aebl, Kaen and Seaboard
Change-Id: Id5f5742622d7041c2cfb7f867742701a087f3e59
Reviewed-on: http://gerrit.chromium.org/gerrit/4666
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'arch/arm/cpu/armv7/tegra2')
-rw-r--r-- | arch/arm/cpu/armv7/tegra2/clock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/tegra2/clock.c b/arch/arm/cpu/armv7/tegra2/clock.c index 7227e5850a..b3a4b7e105 100644 --- a/arch/arm/cpu/armv7/tegra2/clock.c +++ b/arch/arm/cpu/armv7/tegra2/clock.c @@ -451,7 +451,6 @@ unsigned long clock_start_pll(enum clock_id clkid, u32 divm, u32 divn, return timer_get_future_us(CLOCK_PLL_STABLE_DELAY_US); } -#ifdef DEBUG /* return 1 if a peripheral ID is in range and valid */ static int clock_periph_id_isvalid(enum periph_id id) { @@ -479,7 +478,6 @@ static int clock_periph_id_isvalid(enum periph_id id) } return 0; } -#endif /* Returns a pointer to the clock source register for a peripheral */ static u32 *get_periph_source_reg(enum periph_id periph_id) |