Commit 6b825b17 authored by Rob Herring's avatar Rob Herring

bus: fsl-mc: 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.

Cc: Stuart Yoder <stuyoder@gmail.com>
Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent da2ef666
...@@ -693,8 +693,8 @@ static int parse_mc_ranges(struct device *dev, ...@@ -693,8 +693,8 @@ static int parse_mc_ranges(struct device *dev,
*ranges_start = of_get_property(mc_node, "ranges", &ranges_len); *ranges_start = of_get_property(mc_node, "ranges", &ranges_len);
if (!(*ranges_start) || !ranges_len) { if (!(*ranges_start) || !ranges_len) {
dev_warn(dev, dev_warn(dev,
"missing or empty ranges property for device tree node '%s'\n", "missing or empty ranges property for device tree node '%pOFn'\n",
mc_node->name); mc_node);
return 0; return 0;
} }
...@@ -717,7 +717,7 @@ static int parse_mc_ranges(struct device *dev, ...@@ -717,7 +717,7 @@ static int parse_mc_ranges(struct device *dev,
tuple_len = range_tuple_cell_count * sizeof(__be32); tuple_len = range_tuple_cell_count * sizeof(__be32);
if (ranges_len % tuple_len != 0) { if (ranges_len % tuple_len != 0) {
dev_err(dev, "malformed ranges property '%s'\n", mc_node->name); dev_err(dev, "malformed ranges property '%pOFn'\n", mc_node);
return -EINVAL; return -EINVAL;
} }
......
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