]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb5a84c6e1748d9984b46002b089c7590735b3fdc
tree98e7317469c0931ab67c309287572484ca23463e
parentfec4ed1456ee963296d8b36bddea4bc02c3a28f9
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