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:23:14 +0000 (10:23 +0200)
commit4477a67d0b568d8f8ab8f1e112d1e4dc4f97c053
tree63f771221b86a54a6ee96556f3d5d9753e076441
parent8d27c2186eeac351c08022e3580f1348fe09d7b5
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