summaryrefslogtreecommitdiff
path: root/drivers/devfreq/governor_performance.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/devfreq/governor_performance.c')
-rw-r--r--drivers/devfreq/governor_performance.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/devfreq/governor_performance.c b/drivers/devfreq/governor_performance.c
index 4d23ecfbd948..ded429fd51be 100644
--- a/drivers/devfreq/governor_performance.c
+++ b/drivers/devfreq/governor_performance.c
@@ -20,10 +20,7 @@ static int devfreq_performance_func(struct devfreq *df,
* target callback should be able to get floor value as
* said in devfreq.h
*/
- if (!df->max_freq)
- *freq = UINT_MAX;
- else
- *freq = df->max_freq;
+ *freq = DEVFREQ_MAX_FREQ;
return 0;
}