- Initialize freq variable so we will not end up with random value

if there is no YAMON present
This commit is contained in:
gonzo 2013-08-27 01:08:55 +00:00
parent a52b9ca1d3
commit 5f8ac85569

View File

@ -56,6 +56,7 @@ yamon_getcpufreq(void)
uint32_t freq;
int ret;
freq = 0;
ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq,
sizeof(freq));
if (ret != 0)