summaryrefslogtreecommitdiff
path: root/drivers/macintosh/windfarm_fcu_controls.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-07-18 16:43:12 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-01 16:42:52 +1000
commitb6a945ae03fd3962b51b27ecedf4f1dd7e034229 (patch)
tree1462bec56b191c6c89e641a6c442798b42eec908 /drivers/macintosh/windfarm_fcu_controls.c
parent859420e3155d8192b31a93cd92d32c85151bf8da (diff)
macintosh: 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> [mpe: Also convert the two cases inside #if 0] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/windfarm_fcu_controls.c')
-rw-r--r--drivers/macintosh/windfarm_fcu_controls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_fcu_controls.c b/drivers/macintosh/windfarm_fcu_controls.c
index 0226b796a21c..fab7a21e9577 100644
--- a/drivers/macintosh/windfarm_fcu_controls.c
+++ b/drivers/macintosh/windfarm_fcu_controls.c
@@ -470,8 +470,8 @@ static void wf_fcu_lookup_fans(struct wf_fcu_priv *pv)
id = ((*reg) - 0x30) / 2;
if (id > 7) {
pr_warning("wf_fcu: Can't parse "
- "fan ID in device-tree for %s\n",
- np->full_name);
+ "fan ID in device-tree for %pOF\n",
+ np);
break;
}
wf_fcu_add_fan(pv, name, type, id);