diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 16:37:06 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-12-05 23:45:13 +0300 |
commit | b3e46d1a0590500335f0b95e669ad6d84b12b03a (patch) | |
tree | 03ae42679eab36e311870dffdafe1aa7870875a2 /drivers/of/address.c | |
parent | ae517053f003bc3739640acd8d77617b14bf45d2 (diff) | |
download | linux-b3e46d1a0590500335f0b95e669ad6d84b12b03a.tar.xz |
of: 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: Frank Rowand <frowand.list@gmail.com>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index ae48e121b6e7..2270373b30ab 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -371,7 +371,7 @@ EXPORT_SYMBOL(of_pci_range_to_resource); static int of_bus_isa_match(struct device_node *np) { - return !strcmp(np->name, "isa"); + return of_node_name_eq(np, "isa"); } static void of_bus_isa_count_cells(struct device_node *child, |