]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clocksource/drivers/nxp-stm: Prevent driver unbind
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2025 15:32:26 +0000 (16:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:20 +0000 (14:03 +0100)
commit110337fa5f06b7259035d70418eefa65ffdd3a94
treefef0ca403ac05ed1c41f4ac2ee897c68fe81478a
parent755927ae17691c29bb5c8568e0e96a7ee58a14e9
clocksource/drivers/nxp-stm: Prevent driver unbind

[ Upstream commit 6a2416892e8942f5e2bfe9b85c0164f410a53a2d ]

Clockevents cannot be deregistered so suppress the bind attributes to
prevent the driver from being unbound and releasing the underlying
resources after registration.

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: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251111153226.579-4-johan@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/timer-nxp-stm.c