clocksource/drivers/scx200: Add module owner
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Jun 2025 15:18:45 +0000 (17:18 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 08:21:24 +0000 (10:21 +0200)
commitd6bfdeb4fde74c9a0e227cc1af9dda69c57489f4
tree01e9fb2993e04a4fdc88a2ec5ede6531cfc90cb5
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
clocksource/drivers/scx200: Add module owner

The conversion to modules requires a correct handling of the module
refcount in order to prevent to unload it if it is in use. That is
especially true with the clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
different clocksource and clockevents if the module owner is set.

Add the module owner to make sure the core framework will prevent
stupid things happening when the driver will be converted into a
module.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Will McVicker <willmcvicker@google.com>
Link: https://lore.kernel.org/r/20250602151853.1942521-2-daniel.lezcano@linaro.org
drivers/clocksource/scx200_hrt.c