clk: 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: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-omap@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
committed by
Stephen Boyd
parent
5b394b2ddf
commit
e665f029a2
@ -602,7 +602,7 @@ void __init zynq_clock_init(void)
|
||||
}
|
||||
|
||||
if (of_address_to_resource(np, 0, &res)) {
|
||||
pr_err("%s: failed to get resource\n", np->name);
|
||||
pr_err("%pOFn: failed to get resource\n", np);
|
||||
goto np_err;
|
||||
}
|
||||
|
||||
@ -611,7 +611,7 @@ void __init zynq_clock_init(void)
|
||||
if (slcr->data) {
|
||||
zynq_clkc_base = (__force void __iomem *)slcr->data + res.start;
|
||||
} else {
|
||||
pr_err("%s: Unable to get I/O memory\n", np->name);
|
||||
pr_err("%pOFn: Unable to get I/O memory\n", np);
|
||||
of_node_put(slcr);
|
||||
goto np_err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user