mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
cpufreq: mediatek: Use module_init and add module_exit
[ Upstream commit b7070187c8 ]
- Use module_init instead of device_initcall.
- Add a function for module_exit to unregister driver.
Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c7b0ec9744
commit
9d91400fff
|
|
@ -579,7 +579,13 @@ static int __init mtk_cpufreq_driver_init(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
device_initcall(mtk_cpufreq_driver_init);
|
module_init(mtk_cpufreq_driver_init)
|
||||||
|
|
||||||
|
static void __exit mtk_cpufreq_driver_exit(void)
|
||||||
|
{
|
||||||
|
platform_driver_unregister(&mtk_cpufreq_platdrv);
|
||||||
|
}
|
||||||
|
module_exit(mtk_cpufreq_driver_exit)
|
||||||
|
|
||||||
MODULE_DESCRIPTION("MediaTek CPUFreq driver");
|
MODULE_DESCRIPTION("MediaTek CPUFreq driver");
|
||||||
MODULE_AUTHOR("Pi-Cheng Chen <pi-cheng.chen@linaro.org>");
|
MODULE_AUTHOR("Pi-Cheng Chen <pi-cheng.chen@linaro.org>");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user