diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 6b9865c786ba..41c05098ed1d 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -586,7 +586,7 @@ __cpufreq_cooling_register(struct device_node *np, cdev = ERR_PTR(ret); goto free_table; } - cpufreq_cdev->id = ret; + cpufreq_cdev->id = policy->cpu; snprintf(dev_name, sizeof(dev_name), "thermal-cpufreq-%d", cpufreq_cdev->id);