aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLifeng Zheng <zhenglifeng1@huawei.com>2025-04-21 11:00:19 +0800
committerChanwoo Choi <cw00.choi@samsung.com>2025-07-14 20:04:16 +0900
commita98d36802f677d90333cc431e23f13cd53608a96 (patch)
tree322c0a6adbfb9750c4af3bcebb9509f50d5e19ea
parentPM / devfreq: Limit max_freq with scaling_min_freq (diff)
downloadwireguard-linux-a98d36802f677d90333cc431e23f13cd53608a96.tar.xz
wireguard-linux-a98d36802f677d90333cc431e23f13cd53608a96.zip
PM / devfreq: Remove redundant devfreq_get_freq_range() calling in devfreq_add_device()
The calling of devfreq_get_freq_range() in devfreq_add_device() is redundant because min_freq and max_freq are never used. Remove it. Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com> Link: https://lore.kernel.org/lkml/20250421030020.3108405-4-zhenglifeng1@huawei.com/ Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--drivers/devfreq/devfreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 2810c84b9f8a..18e3f7e063a4 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -804,7 +804,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
{
struct devfreq *devfreq;
struct devfreq_governor *governor;
- unsigned long min_freq, max_freq;
int err = 0;
if (!dev || !profile || !governor_name) {
@@ -872,8 +871,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
goto err_dev;
}
- devfreq_get_freq_range(devfreq, &min_freq, &max_freq);
-
devfreq->suspend_freq = dev_pm_opp_get_suspend_opp_freq(dev);
devfreq->opp_table = dev_pm_opp_get_opp_table(dev);
if (IS_ERR(devfreq->opp_table))