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

if there is no YAMON present
This commit is contained in:
Oleksandr Tymoshenko 2013-08-27 01:08:55 +00:00
parent 5e9ccc8797
commit c9735f9537
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254944

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)