mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:00:53 +07:00
xtensa: 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: Chris Zankel <chris@zankel.net> Cc: linux-xtensa@linux-xtensa.org Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
5dc4dca483
commit
da2ef6663b
@ -94,7 +94,7 @@ static void __init xtfpga_clk_setup(struct device_node *np)
|
||||
u32 freq;
|
||||
|
||||
if (!base) {
|
||||
pr_err("%s: invalid address\n", np->name);
|
||||
pr_err("%pOFn: invalid address\n", np);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -103,12 +103,12 @@ static void __init xtfpga_clk_setup(struct device_node *np)
|
||||
clk = clk_register_fixed_rate(NULL, np->name, NULL, 0, freq);
|
||||
|
||||
if (IS_ERR(clk)) {
|
||||
pr_err("%s: clk registration failed\n", np->name);
|
||||
pr_err("%pOFn: clk registration failed\n", np);
|
||||
return;
|
||||
}
|
||||
|
||||
if (of_clk_add_provider(np, of_clk_src_simple_get, clk)) {
|
||||
pr_err("%s: clk provider registration failed\n", np->name);
|
||||
pr_err("%pOFn: clk provider registration failed\n", np);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user