Commit db15e7f2 authored by Rob Herring's avatar Rob Herring Committed by Ingo Molnar

x86/devicetree: 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 device node.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: devicetree@vger.kernel.org
Link: http://lkml.kernel.org/r/20170718214339.7774-7-robh@kernel.org
[ Clarify the error message while at it, as 'node' is ambiguous. ]
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 2fe9a5c6
...@@ -235,8 +235,7 @@ static void __init dtb_add_ioapic(struct device_node *dn) ...@@ -235,8 +235,7 @@ static void __init dtb_add_ioapic(struct device_node *dn)
ret = of_address_to_resource(dn, 0, &r); ret = of_address_to_resource(dn, 0, &r);
if (ret) { if (ret) {
printk(KERN_ERR "Can't obtain address from node %s.\n", printk(KERN_ERR "Can't obtain address from device node %pOF.\n", dn);
dn->full_name);
return; return;
} }
mp_register_ioapic(++ioapic_id, r.start, gsi_top, &cfg); mp_register_ioapic(++ioapic_id, r.start, gsi_top, &cfg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment