thermal: rockchip: register thermal driver early

The voltage level of opp-table depend on thermal driver.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Id51106a0676cac38027e901d9c30832aba39d8a5
This commit is contained in:
Liang Chen
2023-02-21 17:38:31 +08:00
parent 5071891c17
commit 7702078207

View File

@@ -2549,7 +2549,17 @@ static struct platform_driver rockchip_thermal_driver = {
.shutdown = rockchip_thermal_shutdown,
};
module_platform_driver(rockchip_thermal_driver);
static int __init rockchip_thermal_driver_init(void)
{
return platform_driver_register(&rockchip_thermal_driver);
}
rootfs_initcall(rockchip_thermal_driver_init);
static void __exit rockchip_thermal_driver_exit(void)
{
platform_driver_unregister(&rockchip_thermal_driver);
}
module_exit(rockchip_thermal_driver_exit);
MODULE_DESCRIPTION("ROCKCHIP THERMAL Driver");
MODULE_AUTHOR("Rockchip, Inc.");