diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 17:42:53 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-08-31 09:56:17 -0400 |
commit | 469869d18a886e046161ca65516bd3ffcd2f804b (patch) | |
tree | aad37b7210699c861ea71ae9674000aae988d01b /drivers/clocksource/timer-stm32.c | |
parent | ebbe266509d8a5453f51f77277da65d870125b72 (diff) |
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>
Diffstat (limited to 'drivers/clocksource/timer-stm32.c')
-rw-r--r-- | drivers/clocksource/timer-stm32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index 174d1243ea93..8f2423789ba9 100644 --- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c | |||
@@ -138,7 +138,7 @@ static int __init stm32_clockevent_init(struct device_node *np) | |||
138 | irq = irq_of_parse_and_map(np, 0); | 138 | irq = irq_of_parse_and_map(np, 0); |
139 | if (!irq) { | 139 | if (!irq) { |
140 | ret = -EINVAL; | 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 | goto err_get_irq; | 142 | goto err_get_irq; |
143 | } | 143 | } |
144 | 144 | ||
@@ -168,12 +168,12 @@ static int __init stm32_clockevent_init(struct device_node *np) | |||
168 | ret = request_irq(irq, stm32_clock_event_handler, IRQF_TIMER, | 168 | ret = request_irq(irq, stm32_clock_event_handler, IRQF_TIMER, |
169 | "stm32 clockevent", data); | 169 | "stm32 clockevent", data); |
170 | if (ret) { | 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 | goto err_get_irq; | 172 | goto err_get_irq; |
173 | } | 173 | } |
174 | 174 | ||
175 | pr_info("%s: STM32 clockevent driver initialized (%d bits)\n", | 175 | pr_info("%pOF: STM32 clockevent driver initialized (%d bits)\n", |
176 | np->full_name, bits); | 176 | np, bits); |
177 | 177 | ||
178 | return ret; | 178 | return ret; |
179 | 179 | ||