Commit 896d6a4c authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err()

We have the device structure available now, lets use it for better print
messages.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b2a3b193
...@@ -246,7 +246,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) ...@@ -246,7 +246,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
*/ */
ret = dev_pm_opp_get_opp_count(cpu_dev); ret = dev_pm_opp_get_opp_count(cpu_dev);
if (ret <= 0) { if (ret <= 0) {
pr_debug("OPP table is not ready, deferring probe\n"); dev_dbg(cpu_dev, "OPP table is not ready, deferring probe\n");
ret = -EPROBE_DEFER; ret = -EPROBE_DEFER;
goto out_free_opp; goto out_free_opp;
} }
...@@ -325,7 +325,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) ...@@ -325,7 +325,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table);
if (ret) { if (ret) {
pr_err("failed to init cpufreq table: %d\n", ret); dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret);
goto out_free_priv; goto out_free_priv;
} }
......
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