From: Rob Herring Date: Wed, 5 Dec 2018 19:50:34 +0000 (-0600) Subject: PCI: Use of_node_name_eq() for node name comparisons X-Git-Tag: v5.15~6827^2~11^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83a50d3a235b9c074f30af105b9d9751b55edb70;p=platform%2Fkernel%2Flinux-starfive.git PCI: 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. Signed-off-by: Rob Herring [bhelgaas: drop similar rpaphp_core.c change to avoid merge conflict] Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/of.c b/drivers/pci/of.c index 4c4217d..3d32da1 100644 --- a/drivers/pci/of.c +++ b/drivers/pci/of.c @@ -113,7 +113,7 @@ struct device_node *of_pci_find_child_device(struct device_node *parent, * a fake root for all functions of a multi-function * device we go down them as well. */ - if (!strcmp(node->name, "multifunc-device")) { + if (of_node_name_eq(node, "multifunc-device")) { for_each_child_of_node(node, node2) { if (__of_pci_pci_compare(node2, devfn)) { of_node_put(node);