cpufreq: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:42:54 +0000 (16:42 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Aug 2017 23:20:46 +0000 (01:20 +0200)
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: Rob Herring <robh@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/pmac64-cpufreq.c
drivers/cpufreq/sti-cpufreq.c

index 267e0894c62d08643d1cf34bef94fd54c95daeb8..be623dd7b9f2a38bdd814391439a393f7137e836 100644 (file)
@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode)
                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 */
        pfunc_cpu_getfreq =
index d2d0430d09d4ddcaa3626319741cdb3ef66ef3aa..47105735df12651dcad502aff80f069ca9f447be 100644 (file)
@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) {
        ret = of_property_read_u32_index(np, "st,syscfg",
                                         MAJOR_ID_INDEX, &major_offset);
        if (ret) {
-               dev_err(dev, "No major number offset provided in %s [%d]\n",
-                       np->full_name, ret);
+               dev_err(dev, "No major number offset provided in %pOF [%d]\n",
+                       np, ret);
                return ret;
        }
 
@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void)
                                         MINOR_ID_INDEX, &minor_offset);
        if (ret) {
                dev_err(dev,
-                       "No minor number offset provided %s [%d]\n",
-                       np->full_name, ret);
+                       "No minor number offset provided %pOF [%d]\n",
+                       np, ret);
                return ret;
        }