mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user