diff options
author | Rob Herring <robh@kernel.org> | 2018-11-16 22:06:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 22:35:21 +0100 |
commit | 29c990dfc77c58b21a0f2ff4640b6a26955d0661 (patch) | |
tree | defc761de237c9456c793e485c00a247ea5ab795 /arch/sparc/kernel/irq_64.c | |
parent | sparc: Convert to using %pOFn instead of device_node.name (diff) | |
download | linux-29c990dfc77c58b21a0f2ff4640b6a26955d0661.tar.xz linux-29c990dfc77c58b21a0f2ff4640b6a26955d0661.zip |
sparc: 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: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq_64.c')
-rw-r--r-- | arch/sparc/kernel/irq_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c index 713670e6d13d..3ec9f1402aad 100644 --- a/arch/sparc/kernel/irq_64.c +++ b/arch/sparc/kernel/irq_64.c @@ -915,7 +915,7 @@ static void map_prom_timers(void) dp = of_find_node_by_path("/"); dp = dp->child; while (dp) { - if (!strcmp(dp->name, "counter-timer")) + if (of_node_name_eq(dp, "counter-timer")) break; dp = dp->sibling; } |