[V2,1/6] PM / devfreq: fix build error when DEVFREQ_GOV_PASSIVE enabled

Message ID 1616468359-14513-2-git-send-email-aisheng.dong@nxp.com
State New
Headers show
Series
  • [V2,1/6] PM / devfreq: fix build error when DEVFREQ_GOV_PASSIVE enabled
Related show

Commit Message

Aisheng Dong March 23, 2021, 2:59 a.m.
drivers/devfreq/devfreq.c: In function ‘devfreq_transitions_show’:
drivers/devfreq/devfreq.c:2188:25: error: ‘struct devfreq’ has no member named ‘governor_name’; did you mean ‘governor’?
 2188 |   if (!strncmp(devfreq->governor_name,
      |                         ^~~~~~~~~~~~~
      |                         governor

Fixes: 5cc75e9252e9 ("PM / devfreq: Add devfreq_transitions debugfs file")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
---
 drivers/devfreq/devfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index d625b268adf2..107badfc6b2b 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -2185,7 +2185,7 @@  static int devfreq_transitions_show(struct seq_file *s, void *data)
 			continue;
 
 #if IS_ENABLED(CONFIG_DEVFREQ_GOV_PASSIVE)
-		if (!strncmp(devfreq->governor_name,
+		if (!strncmp(devfreq->governor->name,
 				DEVFREQ_GOV_PASSIVE, DEVFREQ_NAME_LEN)) {
 			struct devfreq_passive_data *data = devfreq->data;