timer: orion-timer: Only init timer once
authorStefan Roese <sr@denx.de>
Wed, 21 Sep 2022 06:26:42 +0000 (08:26 +0200)
committerStefan Roese <sr@denx.de>
Thu, 6 Oct 2022 08:15:35 +0000 (10:15 +0200)
commit37bb396669b27aa62fe8bc5eeb6bfde92e09c2d3
tree98e7317469c0931ab67c309287572484ca23463e
parent2de00f342faf8085763869b2c55479028839b957
timer: orion-timer: Only init timer once

Move the code making sure that the timer is initialized only once into
orion_timer_init(), which is called from timer_early_init() and from
orion_timer_probe(). This way the timer is not re-initialized.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Michael Walle <michael@walle.cc>
Cc: Pali Rohár <pali@kernel.org>
drivers/timer/orion-timer.c