aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nios2/kernel
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-27 20:49:49 -0400
committerRob Herring <robh@kernel.org>2018-09-28 17:39:27 -0400
commit5dc4dca48305be61120be42214171acf486413d5 (patch)
treef4a7baff984b5a4dbb3ba9e3acd958e1323d191d /arch/nios2/kernel
parent389d0a8a7af8ff8bb6301382333c7e8f748d7cd6 (diff)
nios2: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Ley Foon Tan <lftan@altera.com> Cc: nios2-dev@lists.rocketboards.org Acked-by: Ley Foon Tan <ley.foon.tan@intel.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/nios2/kernel')
-rw-r--r--arch/nios2/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
index ab88b6dd4679..54467d0085a1 100644
--- a/arch/nios2/kernel/time.c
+++ b/arch/nios2/kernel/time.c
@@ -214,12 +214,12 @@ static int __init nios2_timer_get_base_and_freq(struct device_node *np,
214{ 214{
215 *base = of_iomap(np, 0); 215 *base = of_iomap(np, 0);
216 if (!*base) { 216 if (!*base) {
217 pr_crit("Unable to map reg for %s\n", np->name); 217 pr_crit("Unable to map reg for %pOFn\n", np);
218 return -ENXIO; 218 return -ENXIO;
219 } 219 }
220 220
221 if (of_property_read_u32(np, "clock-frequency", freq)) { 221 if (of_property_read_u32(np, "clock-frequency", freq)) {
222 pr_crit("Unable to get %s clock frequency\n", np->name); 222 pr_crit("Unable to get %pOFn clock frequency\n", np);
223 return -EINVAL; 223 return -EINVAL;
224 } 224 }
225 225