Skip to content

Commit

Permalink
bus: fsl-mc: Convert to using %pOFn instead of device_node.name
Browse files Browse the repository at this point in the history
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Stuart Yoder <[email protected]>
Cc: Laurentiu Tudor <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
robherring committed Sep 28, 2018
1 parent da2ef66 commit 6b825b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/bus/fsl-mc/fsl-mc-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ static int parse_mc_ranges(struct device *dev,
*ranges_start = of_get_property(mc_node, "ranges", &ranges_len);
if (!(*ranges_start) || !ranges_len) {
dev_warn(dev,
"missing or empty ranges property for device tree node '%s'\n",
mc_node->name);
"missing or empty ranges property for device tree node '%pOFn'\n",
mc_node);
return 0;
}

Expand All @@ -717,7 +717,7 @@ static int parse_mc_ranges(struct device *dev,

tuple_len = range_tuple_cell_count * sizeof(__be32);
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;
}

Expand Down

0 comments on commit 6b825b1

Please sign in to comment.