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
@@ -561,8 +561,8 @@ static int mostek_probe(struct platform_device *op)
|
||||
/* On an Enterprise system there can be multiple mostek clocks.
|
||||
* We should only match the one that is on the central FHC bus.
|
||||
*/
|
||||
if (!strcmp(dp->parent->name, "fhc") &&
|
||||
strcmp(dp->parent->parent->name, "central") != 0)
|
||||
if (of_node_name_eq(dp->parent, "fhc") &&
|
||||
!of_node_name_eq(dp->parent->parent, "central"))
|
||||
return -ENODEV;
|
||||
|
||||
printk(KERN_INFO "%pOF: Mostek regs at 0x%llx\n",
|
||||
|
Reference in New Issue
Block a user