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>
This commit is contained in:

committed by
David S. Miller

parent
ead1c2bded
commit
29c990dfc7
@@ -168,7 +168,7 @@ static int fhc_probe(struct platform_device *op)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!strcmp(op->dev.of_node->parent->name, "central"))
|
||||
if (of_node_name_eq(op->dev.of_node->parent, "central"))
|
||||
p->central = true;
|
||||
|
||||
p->pregs = of_ioremap(&op->resource[0], 0,
|
||||
|
Reference in New Issue
Block a user