]> Gentwo Git Trees - linux/.git/commit
clocksource/drivers/nxp-stm: Fix section mismatches
authorJohan Hovold <johan@kernel.org>
Fri, 17 Oct 2025 05:49:43 +0000 (07:49 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 26 Nov 2025 10:24:44 +0000 (11:24 +0100)
commitb452d2c97eeccbf9c7ac5b3d2d9e80bf6d8a23db
tree8d1c2bfa6367f1e78782ba5c55b54b2e6d2deacb
parent62524f285c11d6e6168ad31b586143755b27b2e5
clocksource/drivers/nxp-stm: Fix section mismatches

Platform drivers can be probed after their init sections have been
discarded (e.g. on probe deferral or manual rebind through sysfs) so the
probe function must not live in init. Device managed resource actions
similarly cannot be discarded.

The "_probe" suffix of the driver structure name prevents modpost from
warning about this so replace it to catch any similar future issues.

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>
Cc: stable@vger.kernel.org # 6.16
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251017054943.7195-1-johan@kernel.org
drivers/clocksource/timer-nxp-stm.c