|
@@ -27,11 +27,8 @@
|
|
static int db8500_cpufreq_cooling_probe(struct platform_device *pdev)
|
|
static int db8500_cpufreq_cooling_probe(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct thermal_cooling_device *cdev;
|
|
struct thermal_cooling_device *cdev;
|
|
- struct cpumask mask_val;
|
|
|
|
-
|
|
|
|
- cpumask_set_cpu(0, &mask_val);
|
|
|
|
- cdev = cpufreq_cooling_register(&mask_val);
|
|
|
|
|
|
|
|
|
|
+ cdev = cpufreq_cooling_register(cpu_present_mask);
|
|
if (IS_ERR(cdev)) {
|
|
if (IS_ERR(cdev)) {
|
|
dev_err(&pdev->dev, "Failed to register cooling device\n");
|
|
dev_err(&pdev->dev, "Failed to register cooling device\n");
|
|
return PTR_ERR(cdev);
|
|
return PTR_ERR(cdev);
|