clocksource: 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: Rob Herring <robh@kernel.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Rob Herring and committed by
Daniel Lezcano
469869d1 ebbe2665

+13 -15
+3 -3
drivers/clocksource/tango_xtal.c
··· 26 26 27 27 xtal_in_cnt = of_iomap(np, 0); 28 28 if (xtal_in_cnt == NULL) { 29 - pr_err("%s: invalid address\n", np->full_name); 29 + pr_err("%pOF: invalid address\n", np); 30 30 return -ENXIO; 31 31 } 32 32 33 33 clk = of_clk_get(np, 0); 34 34 if (IS_ERR(clk)) { 35 - pr_err("%s: invalid clock\n", np->full_name); 35 + pr_err("%pOF: invalid clock\n", np); 36 36 return PTR_ERR(clk); 37 37 } 38 38 ··· 43 43 ret = clocksource_mmio_init(xtal_in_cnt, "tango-xtal", xtal_freq, 350, 44 44 32, clocksource_mmio_readl_up); 45 45 if (ret) { 46 - pr_err("%s: registration failed\n", np->full_name); 46 + pr_err("%pOF: registration failed\n", np); 47 47 return ret; 48 48 } 49 49
+5 -6
drivers/clocksource/timer-of.c
··· 52 52 of_irq->irq = irq_of_parse_and_map(np, of_irq->index); 53 53 } 54 54 if (!of_irq->irq) { 55 - pr_err("Failed to map interrupt for %s\n", np->full_name); 55 + pr_err("Failed to map interrupt for %pOF\n", np); 56 56 return -EINVAL; 57 57 } 58 58 ··· 63 63 of_irq->flags ? of_irq->flags : IRQF_TIMER, 64 64 np->full_name, clkevt); 65 65 if (ret) { 66 - pr_err("Failed to request irq %d for %s\n", of_irq->irq, 67 - np->full_name); 66 + pr_err("Failed to request irq %d for %pOF\n", of_irq->irq, np); 68 67 return ret; 69 68 } 70 69 ··· 87 88 of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) : 88 89 of_clk_get(np, of_clk->index); 89 90 if (IS_ERR(of_clk->clk)) { 90 - pr_err("Failed to get clock for %s\n", np->full_name); 91 + pr_err("Failed to get clock for %pOF\n", np); 91 92 return PTR_ERR(of_clk->clk); 92 93 } 93 94 94 95 ret = clk_prepare_enable(of_clk->clk); 95 96 if (ret) { 96 - pr_err("Failed for enable clock for %s\n", np->full_name); 97 + pr_err("Failed for enable clock for %pOF\n", np); 97 98 goto out_clk_put; 98 99 } 99 100 100 101 of_clk->rate = clk_get_rate(of_clk->clk); 101 102 if (!of_clk->rate) { 102 103 ret = -EINVAL; 103 - pr_err("Failed to get clock rate for %s\n", np->full_name); 104 + pr_err("Failed to get clock rate for %pOF\n", np); 104 105 goto out_clk_disable; 105 106 } 106 107
+1 -2
drivers/clocksource/timer-probe.c
··· 40 40 41 41 ret = init_func_ret(np); 42 42 if (ret) { 43 - pr_err("Failed to initialize '%s': %d\n", 44 - of_node_full_name(np), ret); 43 + pr_err("Failed to initialize '%pOF': %d\n", np, ret); 45 44 continue; 46 45 } 47 46
+4 -4
drivers/clocksource/timer-stm32.c
··· 138 138 irq = irq_of_parse_and_map(np, 0); 139 139 if (!irq) { 140 140 ret = -EINVAL; 141 - pr_err("%s: failed to get irq.\n", np->full_name); 141 + pr_err("%pOF: failed to get irq.\n", np); 142 142 goto err_get_irq; 143 143 } 144 144 ··· 168 168 ret = request_irq(irq, stm32_clock_event_handler, IRQF_TIMER, 169 169 "stm32 clockevent", data); 170 170 if (ret) { 171 - pr_err("%s: failed to request irq.\n", np->full_name); 171 + pr_err("%pOF: failed to request irq.\n", np); 172 172 goto err_get_irq; 173 173 } 174 174 175 - pr_info("%s: STM32 clockevent driver initialized (%d bits)\n", 176 - np->full_name, bits); 175 + pr_info("%pOF: STM32 clockevent driver initialized (%d bits)\n", 176 + np, bits); 177 177 178 178 return ret; 179 179