]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
omap-common/hwinit-common.c: timer_init() doesn't need to touch gd
authorTom Rini <trini@ti.com>
Fri, 19 Dec 2014 21:52:55 +0000 (16:52 -0500)
committerTom Rini <trini@ti.com>
Mon, 5 Jan 2015 20:13:45 +0000 (15:13 -0500)
commitb31079282e16c77f6f8878999867c7d622ececae
treede4301a0f6e17447d68164ae38ccce2ce3f42049
parentb352dde1ea715e8481946ec7d8086b3c3eb126ae
omap-common/hwinit-common.c: timer_init() doesn't need to touch gd

The gd will be cleared at first so we don't need to set arch.tbl to 0.
In addition, the checks later against lastinc also work fine with an
initial value of 0 here.  This also brings us in line with sunxi code
for example.

Signed-off-by: Tom Rini <trini@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv7/omap-common/timer.c