mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
virt: 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>
This commit is contained in:
parent
985541f6c0
commit
55e18b1833
@ -841,8 +841,8 @@ static int __init fsl_hypervisor_init(void)
|
|||||||
handle = of_get_property(np, "interrupts", NULL);
|
handle = of_get_property(np, "interrupts", NULL);
|
||||||
irq = irq_of_parse_and_map(np, 0);
|
irq = irq_of_parse_and_map(np, 0);
|
||||||
if (!handle || (irq == NO_IRQ)) {
|
if (!handle || (irq == NO_IRQ)) {
|
||||||
pr_err("fsl-hv: no 'interrupts' property in %s node\n",
|
pr_err("fsl-hv: no 'interrupts' property in %pOF node\n",
|
||||||
np->full_name);
|
np);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -869,8 +869,8 @@ static int __init fsl_hypervisor_init(void)
|
|||||||
*/
|
*/
|
||||||
dbisr->partition = ret = get_parent_handle(np);
|
dbisr->partition = ret = get_parent_handle(np);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
pr_err("fsl-hv: node %s has missing or "
|
pr_err("fsl-hv: node %pOF has missing or "
|
||||||
"malformed parent\n", np->full_name);
|
"malformed parent\n", np);
|
||||||
kfree(dbisr);
|
kfree(dbisr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -881,8 +881,8 @@ static int __init fsl_hypervisor_init(void)
|
|||||||
ret = request_irq(irq, fsl_hv_isr, 0, np->name, dbisr);
|
ret = request_irq(irq, fsl_hv_isr, 0, np->name, dbisr);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
pr_err("fsl-hv: could not request irq %u for node %s\n",
|
pr_err("fsl-hv: could not request irq %u for node %pOF\n",
|
||||||
irq, np->full_name);
|
irq, np);
|
||||||
kfree(dbisr);
|
kfree(dbisr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user