diff options
author | Rob Herring <robh@kernel.org> | 2018-12-05 14:50:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-06 00:00:02 -0500 |
commit | c23b8e7acea3dc034edeb902f0c843856e215938 (patch) | |
tree | 77e96c5a22ab13ae2abe0f256ac5326204592451 | |
parent | 91abe6b2237f4ff92aec250c7e79765376f17b0b (diff) |
ALSA: 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>
-rw-r--r-- | sound/sparc/cs4231.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index e73c962590eb..f707cd4886c3 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
@@ -2075,12 +2075,12 @@ static int cs4231_ebus_probe(struct platform_device *op) | |||
2075 | static int cs4231_probe(struct platform_device *op) | 2075 | static int cs4231_probe(struct platform_device *op) |
2076 | { | 2076 | { |
2077 | #ifdef EBUS_SUPPORT | 2077 | #ifdef EBUS_SUPPORT |
2078 | if (!strcmp(op->dev.of_node->parent->name, "ebus")) | 2078 | if (of_node_name_eq(op->dev.of_node->parent, "ebus")) |
2079 | return cs4231_ebus_probe(op); | 2079 | return cs4231_ebus_probe(op); |
2080 | #endif | 2080 | #endif |
2081 | #ifdef SBUS_SUPPORT | 2081 | #ifdef SBUS_SUPPORT |
2082 | if (!strcmp(op->dev.of_node->parent->name, "sbus") || | 2082 | if (of_node_name_eq(op->dev.of_node->parent, "sbus") || |
2083 | !strcmp(op->dev.of_node->parent->name, "sbi")) | 2083 | of_node_name_eq(op->dev.of_node->parent, "sbi")) |
2084 | return cs4231_sbus_probe(op); | 2084 | return cs4231_sbus_probe(op); |
2085 | #endif | 2085 | #endif |
2086 | return -ENODEV; | 2086 | return -ENODEV; |