]> git.ipfire.org Git - thirdparty/linux.git/commit
clocksource/drivers/nxp-pit: Prevent driver unbind
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2025 15:32:25 +0000 (16:32 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 26 Nov 2025 10:24:57 +0000 (11:24 +0100)
commite25f964cf414dafa6bee5c9c2c0b1d1fb041dc92
tree6c9d6313dd4139a4861ed5bbc9a8363e4849bb3f
parent6aa10f0e2ef9eba1955be6a9d0a8eaecf6bdb7ae
clocksource/drivers/nxp-pit: Prevent driver unbind

The driver does not support unbinding (e.g. as clockevents cannot be
deregistered) so suppress the bind attributes to prevent the driver from
being unbound and rebound after registration (and disabling the timer
when reprobing fails).

Even if the driver can currently only be built-in, also switch to
builtin_platform_driver() to prevent it from being unloaded should
modular builds ever be enabled.

Fixes: bee33f22d7c3 ("clocksource/drivers/nxp-pit: Add NXP Automotive s32g2 / s32g3 support")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251111153226.579-3-johan@kernel.org
drivers/clocksource/timer-nxp-pit.c