summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2014-11-06 14:03:04 +0100
committerTom Rini <trini@ti.com>2014-11-10 16:25:27 -0500
commitfeb8cf4a1bc9e1d534d4b2e8ad6d3ee9f5384942 (patch)
treeafb9bd36135321061e9dac0742c75ceceb91bf1c /arch/arm
parentcc87d18a6ec74180784a6b1cdafefeacd8eb1bf2 (diff)
downloadu-boot-imx-feb8cf4a1bc9e1d534d4b2e8ad6d3ee9f5384942.zip
u-boot-imx-feb8cf4a1bc9e1d534d4b2e8ad6d3ee9f5384942.tar.gz
u-boot-imx-feb8cf4a1bc9e1d534d4b2e8ad6d3ee9f5384942.tar.bz2
ARM: MXS: fix Uninitialized variable error
cppcheck reports: [arch/arm/cpu/arm926ejs/mxs/timer.c:96]: (error) Uninitialized variable: now Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/arm926ejs/mxs/timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/timer.c b/arch/arm/cpu/arm926ejs/mxs/timer.c
index 99d3fb8..f2e7225 100644
--- a/arch/arm/cpu/arm926ejs/mxs/timer.c
+++ b/arch/arm/cpu/arm926ejs/mxs/timer.c
@@ -91,6 +91,8 @@ unsigned long long get_ticks(void)
TIMROT_RUNNING_COUNTn_RUNNING_COUNT_OFFSET;
#elif defined(CONFIG_MX28)
now = readl(&timrot_regs->hw_timrot_running_count0);
+#else
+#error "Don't know how to read timrot_regs"
#endif
if (lastdec >= now) {