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)
commit5ee94b4f4032502c26cd3c9ede6a910d7e2c9b46
tree8eae080d0bcf0d5f9f57b3b55efa07e045016c3a
parenteb45787b396f197f2d4c3bc3556c48421528f62b
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