summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_utils.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-28 10:44:28 -0500
committerMark Brown <broonie@kernel.org>2018-08-28 19:07:00 +0100
commit5d585e1e756838d91144c3173323b96f5aa12874 (patch)
treec8d88c84d94388eac19c4cc76de8065278b6f2d4 /sound/soc/fsl/fsl_utils.c
parent6e2d6b2728fcb408eabd7991804f8cb33ff59f20 (diff)
ASoC: 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. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_utils.c')
-rw-r--r--sound/soc/fsl/fsl_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_utils.c b/sound/soc/fsl/fsl_utils.c
index 7f0fa4b52223..9981668ab590 100644
--- a/sound/soc/fsl/fsl_utils.c
+++ b/sound/soc/fsl/fsl_utils.c
@@ -57,8 +57,8 @@ int fsl_asoc_get_dma_channel(struct device_node *ssi_np,
of_node_put(dma_channel_np);
return ret;
}
- snprintf((char *)dai->platform_name, DAI_NAME_SIZE, "%llx.%s",
- (unsigned long long) res.start, dma_channel_np->name);
+ snprintf((char *)dai->platform_name, DAI_NAME_SIZE, "%llx.%pOFn",
+ (unsigned long long) res.start, dma_channel_np);
iprop = of_get_property(dma_channel_np, "cell-index", NULL);
if (!iprop) {