* [PATCH v1 7/7] dtpm/soc/rk3399: Add the ability to unload the module [not found] <20220130210210.549877-1-daniel.lezcano@linaro.org> @ 2022-01-30 21:02 ` Daniel Lezcano 2022-02-17 13:21 ` Ulf Hansson 0 siblings, 1 reply; 2+ messages in thread From: Daniel Lezcano @ 2022-01-30 21:02 UTC (permalink / raw) To: daniel.lezcano, rjw Cc: heiko, lukasz.luba, linux-kernel, linux-pm, ulf.hansson, moderated list:ARM/Rockchip SoC support, open list:ARM/Rockchip SoC support The dtpm hierarchy can now be removed with the dtpm_destroy_hierarchy() function. Add the module_exit() callback so the module can be unloaded by removing the previously created hierarchy. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- drivers/soc/rockchip/dtpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/rockchip/dtpm.c b/drivers/soc/rockchip/dtpm.c index ebebb748488b..5a23784b5221 100644 --- a/drivers/soc/rockchip/dtpm.c +++ b/drivers/soc/rockchip/dtpm.c @@ -52,6 +52,12 @@ static int __init rockchip_dtpm_init(void) } module_init(rockchip_dtpm_init); +static void __exit rockchip_dtpm_exit(void) +{ + return dtpm_destroy_hierarchy(); +} +module_exit(rockchip_dtpm_exit); + MODULE_SOFTDEP("pre: panfrost cpufreq-dt"); MODULE_DESCRIPTION("Rockchip DTPM driver"); MODULE_LICENSE("GPL"); -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 7/7] dtpm/soc/rk3399: Add the ability to unload the module 2022-01-30 21:02 ` [PATCH v1 7/7] dtpm/soc/rk3399: Add the ability to unload the module Daniel Lezcano @ 2022-02-17 13:21 ` Ulf Hansson 0 siblings, 0 replies; 2+ messages in thread From: Ulf Hansson @ 2022-02-17 13:21 UTC (permalink / raw) To: Daniel Lezcano Cc: rjw, heiko, lukasz.luba, linux-kernel, linux-pm, moderated list:ARM/Rockchip SoC support, open list:ARM/Rockchip SoC support On Sun, 30 Jan 2022 at 22:02, Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > The dtpm hierarchy can now be removed with the > dtpm_destroy_hierarchy() function. Add the module_exit() callback so > the module can be unloaded by removing the previously created > hierarchy. > > Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Kind regards Uffe > --- > drivers/soc/rockchip/dtpm.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/soc/rockchip/dtpm.c b/drivers/soc/rockchip/dtpm.c > index ebebb748488b..5a23784b5221 100644 > --- a/drivers/soc/rockchip/dtpm.c > +++ b/drivers/soc/rockchip/dtpm.c > @@ -52,6 +52,12 @@ static int __init rockchip_dtpm_init(void) > } > module_init(rockchip_dtpm_init); > > +static void __exit rockchip_dtpm_exit(void) > +{ > + return dtpm_destroy_hierarchy(); > +} > +module_exit(rockchip_dtpm_exit); > + > MODULE_SOFTDEP("pre: panfrost cpufreq-dt"); > MODULE_DESCRIPTION("Rockchip DTPM driver"); > MODULE_LICENSE("GPL"); > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-17 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220130210210.549877-1-daniel.lezcano@linaro.org>
2022-01-30 21:02 ` [PATCH v1 7/7] dtpm/soc/rk3399: Add the ability to unload the module Daniel Lezcano
2022-02-17 13:21 ` Ulf Hansson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).