]> git.baikalelectronics.ru Git - kernel.git/commit
of: Make of_find_node_by_path() handle /aliases
authorGrant Likely <grant.likely@linaro.org>
Fri, 14 Mar 2014 17:07:12 +0000 (17:07 +0000)
committerGrant Likely <grant.likely@linaro.org>
Fri, 23 May 2014 02:35:06 +0000 (11:35 +0900)
commitb54e38b972cd40dd55ab966607249c17b006a350
tree21c0c5115af3cb4cec650b818d1ec03839a0fe0b
parent865889f82df8cda9eaf498a81df1733dcb951b6d
of: Make of_find_node_by_path() handle /aliases

Make of_find_node_by_path() handle aliases as prefixes. To make this
work the name search is refactored to search by path component instead
of by full string. This should be a more efficient search, and it makes
it possible to start a search at a subnode of a tree.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[grant.likely: Rework to not require allocating at runtime]
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c