Skip to content

Commit 101388b

Browse files
pfiservireshk
authored andcommitted
cpufreq: ti-cpufreq: Handle deferred probe with dev_err_probe()
Handle deferred probing gracefully by using dev_err_probe() to not spam console with unnecessary error messages. Fixes: f88d152 ("cpufreq: ti: Migrate to dev_pm_opp_set_config()") Signed-off-by: Primoz Fiser <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 64e018d commit 101388b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/ti-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ static int ti_cpufreq_probe(struct platform_device *pdev)
417417

418418
ret = dev_pm_opp_set_config(opp_data->cpu_dev, &config);
419419
if (ret < 0) {
420-
dev_err(opp_data->cpu_dev, "Failed to set OPP config\n");
420+
dev_err_probe(opp_data->cpu_dev, ret, "Failed to set OPP config\n");
421421
goto fail_put_node;
422422
}
423423

0 commit comments

Comments
 (0)