aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/cpu_cooling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 5f5c780bcd9..768b508f0d6 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -303,12 +303,12 @@ static int cpufreq_get_max_state(struct thermal_cooling_device *cdev,
struct cpufreq_cooling_device *cpufreq_device = cdev->devdata;
struct cpumask *mask = &cpufreq_device->allowed_cpus;
unsigned int cpu;
- unsigned long count = 0;
+ unsigned int count = 0;
int ret;
cpu = cpumask_any(mask);
- ret = get_property(cpu, 0, (unsigned int *)&count, GET_MAXL);
+ ret = get_property(cpu, 0, &count, GET_MAXL);
if (count > 0)
*state = count;