591340c6f225f0188754950cb036017d75d2afa0
[openwrt/staging/jow.git] /
1 From eee9f767c41b03a2744d4b0f0c1a144e4ff41e78 Mon Sep 17 00:00:00 2001
2 From: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
3 Date: Mon, 6 Jun 2022 13:01:02 +0200
4 Subject: [PATCH v4 4/4] PM / devfreq: Mute warning on governor PROBE_DEFER
5
6 Don't print warning when a governor PROBE_DEFER as it's not a real
7 GOV_START fail.
8
9 Fixes: a03dacb0316f ("PM / devfreq: Add cpu based scaling support to passive governor")
10 Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
11 ---
12 drivers/devfreq/devfreq.c | 5 +++--
13 1 file changed, 3 insertions(+), 2 deletions(-)
14
15 --- a/drivers/devfreq/devfreq.c
16 +++ b/drivers/devfreq/devfreq.c
17 @@ -930,8 +930,9 @@ struct devfreq *devfreq_add_device(struc
18 err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START,
19 NULL);
20 if (err) {
21 - dev_err(dev, "%s: Unable to start governor for the device\n",
22 - __func__);
23 + dev_err_probe(dev, err,
24 + "%s: Unable to start governor for the device\n",
25 + __func__);
26 goto err_init;
27 }
28 create_sysfs_files(devfreq, devfreq->governor);