Commit 5dc4dca4 authored by Rob Herring's avatar Rob Herring

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: default avatarLey Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 389d0a8a
...@@ -214,12 +214,12 @@ static int __init nios2_timer_get_base_and_freq(struct device_node *np, ...@@ -214,12 +214,12 @@ static int __init nios2_timer_get_base_and_freq(struct device_node *np,
{ {
*base = of_iomap(np, 0); *base = of_iomap(np, 0);
if (!*base) { if (!*base) {
pr_crit("Unable to map reg for %s\n", np->name); pr_crit("Unable to map reg for %pOFn\n", np);
return -ENXIO; return -ENXIO;
} }
if (of_property_read_u32(np, "clock-frequency", freq)) { if (of_property_read_u32(np, "clock-frequency", freq)) {
pr_crit("Unable to get %s clock frequency\n", np->name); pr_crit("Unable to get %pOFn clock frequency\n", np);
return -EINVAL; return -EINVAL;
} }
......
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