Commit cc5a7a74 authored by Rob Herring's avatar Rob Herring Committed by Rafael J. Wysocki

cpufreq: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e948bc8f
...@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode) ...@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode)
goto bail; goto bail;
} }
DBG("cpufreq: i2c clock chip found: %s\n", hwclock->full_name); DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock);
/* Now get all the platform functions */ /* Now get all the platform functions */
pfunc_cpu_getfreq = pfunc_cpu_getfreq =
......
...@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) { ...@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) {
ret = of_property_read_u32_index(np, "st,syscfg", ret = of_property_read_u32_index(np, "st,syscfg",
MAJOR_ID_INDEX, &major_offset); MAJOR_ID_INDEX, &major_offset);
if (ret) { if (ret) {
dev_err(dev, "No major number offset provided in %s [%d]\n", dev_err(dev, "No major number offset provided in %pOF [%d]\n",
np->full_name, ret); np, ret);
return ret; return ret;
} }
...@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void) ...@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void)
MINOR_ID_INDEX, &minor_offset); MINOR_ID_INDEX, &minor_offset);
if (ret) { if (ret) {
dev_err(dev, dev_err(dev,
"No minor number offset provided %s [%d]\n", "No minor number offset provided %pOF [%d]\n",
np->full_name, ret); np, ret);
return ret; return ret;
} }
......
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