]> git.baikalelectronics.ru Git - kernel.git/commit
of: property: Fix the semantics of of_is_ancestor_of()
authorSaravana Kannan <saravanak@google.com>
Wed, 20 Nov 2019 08:02:29 +0000 (00:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Nov 2019 12:01:15 +0000 (13:01 +0100)
commit4115375020f4b2009f549db0d4725a7e43224d1d
tree777bb75c18012169015acd735cdd96fa3ba4d473
parent672d1f855b35febeedb463236e0b24cdd1e7c799
of: property: Fix the semantics of of_is_ancestor_of()

The of_is_ancestor_of() function was renamed from of_link_is_valid()
based on review feedback. The rename meant the semantics of the function
had to be inverted, but this was missed in the earlier patch.

So, fix the semantics of of_is_ancestor_of() and invert the conditional
expressions where it is used.

Fixes: 90329aa164c1 ("of: property: Add functional dependency link from DT bindings")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20191120080230.16007-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/property.c