cpufreq: mediatek: Use module_init and add module_exit
authorJia-Wei Chang <jia-wei.chang@mediatek.com>
Fri, 8 Apr 2022 04:58:55 +0000 (12:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:12 +0000 (10:26 +0200)
commit930df2ea220596bc57585cddc43893b0f386365c
tree8fb0c8eab6e951f0d8403039ebed0aa8fe2e7c77
parenta832593ca42fdf97ed3f512242ee43d392e4b473
cpufreq: mediatek: Use module_init and add module_exit

[ Upstream commit b7070187c81cb90549d7561c0e750d7c7eb751f4 ]

- 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>
drivers/cpufreq/mediatek-cpufreq.c