[PATCH v1 3/7] clocksource/drivers/sun5i: Add module owner

Chen-Yu Tsai wens at csie.org
Mon Jun 2 21:41:31 PDT 2025


On Mon, Jun 2, 2025 at 11:19 PM Daniel Lezcano
<daniel.lezcano at linaro.org> wrote:
>
> 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 at linaro.org>

Acked-by: Chen-Yu Tsai <wens at csie.org>



More information about the linux-arm-kernel mailing list