]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:20 +0000 (14:03 +0100)
commit7da0b7f66a203a3e7707cb79d0308a43d7b67f2f
tree3c88051e33a4fca9e8234ba9f068c4c79737df52
parent364752785f7dfa2d1455c3e56fccb1cf08c3b0d8
clocksource/drivers/nxp-pit: Prevent driver unbind

[ Upstream commit e25f964cf414dafa6bee5c9c2c0b1d1fb041dc92 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/timer-nxp-pit.c