diff options
author | Rob Herring <robh@kernel.org> | 2018-11-16 15:06:58 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 13:35:21 -0800 |
commit | 29c990dfc77c58b21a0f2ff4640b6a26955d0661 (patch) | |
tree | defc761de237c9456c793e485c00a247ea5ab795 /arch/sparc/kernel/pci_sabre.c | |
parent | ead1c2bdedcb98217f95430e41bf282326edc8d4 (diff) | |
download | talos-obmc-linux-29c990dfc77c58b21a0f2ff4640b6a26955d0661.tar.gz talos-obmc-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/pci_sabre.c')
-rw-r--r-- | arch/sparc/kernel/pci_sabre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/pci_sabre.c b/arch/sparc/kernel/pci_sabre.c index 8107286be9ab..3c38ca40a22b 100644 --- a/arch/sparc/kernel/pci_sabre.c +++ b/arch/sparc/kernel/pci_sabre.c @@ -475,7 +475,7 @@ static int sabre_probe(struct platform_device *op) * different ways, inconsistently. */ for_each_node_by_type(cpu_dp, "cpu") { - if (!strcmp(cpu_dp->name, "SUNW,UltraSPARC-IIe")) + if (of_node_name_eq(cpu_dp, "SUNW,UltraSPARC-IIe")) hummingbird_p = 1; } } |