clocksource: 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: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Michal Simek <michal.simek@xilinx.com> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
@@ -33,7 +33,7 @@ static void __init timer_get_base_and_rate(struct device_node *np,
|
||||
*base = of_iomap(np, 0);
|
||||
|
||||
if (!*base)
|
||||
panic("Unable to map regs for %s", np->name);
|
||||
panic("Unable to map regs for %pOFn", np);
|
||||
|
||||
/*
|
||||
* Not all implementations use a periphal clock, so don't panic
|
||||
@@ -42,8 +42,8 @@ static void __init timer_get_base_and_rate(struct device_node *np,
|
||||
pclk = of_clk_get_by_name(np, "pclk");
|
||||
if (!IS_ERR(pclk))
|
||||
if (clk_prepare_enable(pclk))
|
||||
pr_warn("pclk for %s is present, but could not be activated\n",
|
||||
np->name);
|
||||
pr_warn("pclk for %pOFn is present, but could not be activated\n",
|
||||
np);
|
||||
|
||||
timer_clk = of_clk_get_by_name(np, "timer");
|
||||
if (IS_ERR(timer_clk))
|
||||
@@ -57,7 +57,7 @@ static void __init timer_get_base_and_rate(struct device_node *np,
|
||||
try_clock_freq:
|
||||
if (of_property_read_u32(np, "clock-freq", rate) &&
|
||||
of_property_read_u32(np, "clock-frequency", rate))
|
||||
panic("No clock nor clock-frequency property for %s", np->name);
|
||||
panic("No clock nor clock-frequency property for %pOFn", np);
|
||||
}
|
||||
|
||||
static void __init add_clockevent(struct device_node *event_timer)
|
||||
|
Reference in New Issue
Block a user