Commit 101388b8 authored by Primoz Fiser's avatar Primoz Fiser Committed by Viresh Kumar

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: f88d152d ("cpufreq: ti: Migrate to dev_pm_opp_set_config()")
Signed-off-by: default avatarPrimoz Fiser <primoz.fiser@norik.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 64e018d7
......@@ -417,7 +417,7 @@ static int ti_cpufreq_probe(struct platform_device *pdev)
ret = dev_pm_opp_set_config(opp_data->cpu_dev, &config);
if (ret < 0) {
dev_err(opp_data->cpu_dev, "Failed to set OPP config\n");
dev_err_probe(opp_data->cpu_dev, ret, "Failed to set OPP config\n");
goto fail_put_node;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment