]> git.dujemihanovic.xyz Git - u-boot.git/commit
board:tricorder: always work with valid eeprom data
authorAndreas Bießmann <andreas.biessmann@corscience.de>
Thu, 10 Apr 2014 10:52:50 +0000 (12:52 +0200)
committerTom Rini <trini@ti.com>
Fri, 11 Apr 2014 14:08:42 +0000 (10:08 -0400)
commit1ea2301fcfbfc85e38eb51e1144c5ac190c4c320
tree541ae549ce88747b937d80ea52b3e049e1abcaa3
parent24542528fe5832a11b553c5c408a3c41bc4fec21
board:tricorder: always work with valid eeprom data

Commit 890880583d84607e36b52a785a96b167728bbf73 introduced EEPROM parsing and
board detection but faild to return a valid tricorder_eeprom struct for backup
case.  When pressing S200 while reading EEPROM we ignore the value. We
returned falsely a tricorder_eeprom struct with uninitialized data which is
just garbage.
Initialize it by zeroing the whole structure.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
Cc: Thomas Weber <thomas.weber@corscience.de>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
board/corscience/tricorder/tricorder.c