Skip to content

Commit f1ebef9

Browse files
committed
dtpm/soc/rk3399: Add the ability to unload the module
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> Link: https://lore.kernel.org/r/20220130210210.549877-7-daniel.lezcano@linaro.org
1 parent bfded2c commit f1ebef9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/soc/rockchip/dtpm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ static int __init rockchip_dtpm_init(void)
5252
}
5353
module_init(rockchip_dtpm_init);
5454

55+
static void __exit rockchip_dtpm_exit(void)
56+
{
57+
return dtpm_destroy_hierarchy();
58+
}
59+
module_exit(rockchip_dtpm_exit);
60+
5561
MODULE_SOFTDEP("pre: panfrost cpufreq-dt");
5662
MODULE_DESCRIPTION("Rockchip DTPM driver");
5763
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)