clocksource/drivers/vf-pit: Enable and disable module on error
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:32 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:45 +0000 (12:29 +0200)
commit13cea8527c95e1359191347abe5d94cccc47a311
tree0a818aa9053aa2aa3eb2c08d4611e7964beacd53
parentfcf25b4427c7d1edb91dd02753d6153fb25da094
clocksource/drivers/vf-pit: Enable and disable module on error

Encapsulate the calls to writel to enable and disable the PIT module
and make use of them. Add the missing module disablement in case of
error.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-15-daniel.lezcano@linaro.org
drivers/clocksource/timer-vf-pit.c