Skip to content

Commit e52b045

Browse files
Ansuelchanwoochoi
authored andcommitted
PM / devfreq: Mute warning on governor PROBE_DEFER
Don't print warning when a governor PROBE_DEFER as it's not a real GOV_START fail. Fixes: a03dacb ("PM / devfreq: Add cpu based scaling support to passive governor") Signed-off-by: Christian 'Ansuel' Marangi <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 57e00b4 commit e52b045

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/devfreq/devfreq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,9 @@ struct devfreq *devfreq_add_device(struct device *dev,
932932
err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START,
933933
NULL);
934934
if (err) {
935-
dev_err(dev, "%s: Unable to start governor for the device\n",
936-
__func__);
935+
dev_err_probe(dev, err,
936+
"%s: Unable to start governor for the device\n",
937+
__func__);
937938
goto err_init;
938939
}
939940
create_sysfs_files(devfreq, devfreq->governor);

0 commit comments

Comments
 (0)