PM / devfreq: Reduce log severity for informative message
authorTzung-Bi Shih <tzungbi@google.com>
Tue, 14 Dec 2021 06:31:00 +0000 (14:31 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 16 Dec 2021 02:29:54 +0000 (11:29 +0900)
Suppose devfreq_update_status() failure in devfreq_set_target() is not a
critical error, reduces the log severity.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c

index 7906220..a525a60 100644 (file)
@@ -382,8 +382,8 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,
        devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE);
 
        if (devfreq_update_status(devfreq, new_freq))
-               dev_err(&devfreq->dev,
-                       "Couldn't update frequency transition information.\n");
+               dev_warn(&devfreq->dev,
+                        "Couldn't update frequency transition information.\n");
 
        devfreq->previous_freq = new_freq;