nios2: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Tue, 28 Aug 2018 00:49:49 +0000 (19:49 -0500)
committerRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 21:39:27 +0000 (16:39 -0500)
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>
arch/nios2/kernel/time.c

index ab88b6d..54467d0 100644 (file)
@@ -214,12 +214,12 @@ static int __init nios2_timer_get_base_and_freq(struct device_node *np,
 {
        *base = of_iomap(np, 0);
        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;
        }
 
        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;
        }