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:21:19 +0000 (10:21 +0200)
commit9d91400fff46b221806befc843654e5f5f38a82b
tree5f66c4167c54bcff58a3002d421e66533113842c
parentc7b0ec974457b609aa35f11f8e2125c8a7b9ee05
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