Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/nxp-stm: Prevent driver unbind

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

authored by

Johan Hovold and committed by
Daniel Lezcano
6a241689 e25f964c

+2 -1
+2 -1
drivers/clocksource/timer-nxp-stm.c
··· 487 487 .driver = { 488 488 .name = "nxp-stm", 489 489 .of_match_table = nxp_stm_of_match, 490 + .suppress_bind_attrs = true, 490 491 }, 491 492 }; 492 - module_platform_driver(nxp_stm_driver); 493 + builtin_platform_driver(nxp_stm_driver); 493 494 494 495 MODULE_DESCRIPTION("NXP System Timer Module driver"); 495 496 MODULE_LICENSE("GPL");