mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
sparc: 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. Cc: "David S. Miller" <davem@davemloft.net> Cc: sparclinux@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f3180e1828
commit
a412c85aa8
10 changed files with 55 additions and 60 deletions
|
@ -361,15 +361,15 @@ static unsigned int sun4d_build_device_irq(struct platform_device *op,
|
|||
* lacks a "board#" property, something is very wrong.
|
||||
*/
|
||||
if (!bus->parent || strcmp(bus->parent->name, bus_connection)) {
|
||||
printk(KERN_ERR "%s: Error, parent is not %s.\n",
|
||||
bus->full_name, bus_connection);
|
||||
printk(KERN_ERR "%pOF: Error, parent is not %s.\n",
|
||||
bus, bus_connection);
|
||||
goto err_out;
|
||||
}
|
||||
board_parent = bus->parent;
|
||||
board = of_getintprop_default(board_parent, "board#", -1);
|
||||
if (board == -1) {
|
||||
printk(KERN_ERR "%s: Error, lacks board# property.\n",
|
||||
board_parent->full_name);
|
||||
printk(KERN_ERR "%pOF: Error, lacks board# property.\n",
|
||||
board_parent);
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue