]> git.baikalelectronics.ru Git - uboot.git/commit
board_f: Drop the timer after relocation
authorSimon Glass <sjg@chromium.org>
Wed, 6 Sep 2017 01:49:45 +0000 (19:49 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 16 Sep 2017 06:57:44 +0000 (14:57 +0800)
commitb91c7e484e00bd62edaa70adf2a6e1aa5976bb68
tree8eae080d0bcf0d5f9f57b3b55efa07e045016c3a
parent70f86aebc634e9602381fa0f16e0a968721db2e4
board_f: Drop the timer after relocation

Once U-Boot relocates itself the existing driver-model timer (if any) is
no-longer valid until the device is reinitialised. Any use of the device
may cause a crash. To handle this, set the timer to NULL after relocation.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/board_f.c