coresight: Use of_node_name_eq for node name comparisons

Convert string compares of DT node names to use of_node_name_eq helper
instead. This removes direct access to the node name pointer.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Rob Herring 2019-02-05 16:24:55 -07:00 committed by Greg Kroah-Hartman
parent a7325a6ca4
commit c2bc02f882
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ static struct device_node *of_coresight_get_port_parent(struct device_node *ep)
* Skip one-level up to the real device node, if we * Skip one-level up to the real device node, if we
* are using the new bindings. * are using the new bindings.
*/ */
if (!of_node_cmp(parent->name, "in-ports") || if (of_node_name_eq(parent, "in-ports") ||
!of_node_cmp(parent->name, "out-ports")) of_node_name_eq(parent, "out-ports"))
parent = of_get_next_parent(parent); parent = of_get_next_parent(parent);
return parent; return parent;