clocksource/drivers/timer-ti-dm: Clear settings on probe and free
authorTony Lindgren <tony@atomide.com>
Fri, 28 Oct 2022 10:38:13 +0000 (13:38 +0300)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Fri, 2 Dec 2022 12:16:46 +0000 (13:16 +0100)
commit822963b96dfdb72ec4fb1395fbdfa778656b49d1
tree44104a1c8b59798796190b8de65a4a3c5bae70a7
parentdedb2aced3e958c6f4811d3e6b392652ff0eea01
clocksource/drivers/timer-ti-dm: Clear settings on probe and free

Clear the timer control register on driver probe and omap_dm_timer_free().
Otherwise we assume the consumer driver takes care of properly
initializing timer interrupts on PWM driver module reload for example.

AFAIK this is not currently needed as a fix, I just happened to run into
this while cleaning up things.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221028103813.40783-1-tony@atomide.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
drivers/clocksource/timer-ti-dm.c