]> git.baikalelectronics.ru Git - kernel.git/commit
of: fix incorrect return value of of_find_matching_node_and_match()
authorThomas Abraham <thomas.abraham@linaro.org>
Sat, 19 Jan 2013 18:20:42 +0000 (10:20 -0800)
committerRob Herring <rob.herring@calxeda.com>
Sun, 20 Jan 2013 22:26:42 +0000 (16:26 -0600)
commit02987af80015f9912adb2c70b6808da5caf301e4
treec9ff0a23acfd5b5a2dd487a13cab817e2b671a19
parent39b91da8243ed8c6c289f77388f054e40eea6afc
of: fix incorrect return value of of_find_matching_node_and_match()

The of_find_matching_node_and_match() function incorrectly sets the matched
entry to 'matches' when the compatible value of a node matches one of the
possible values. This results in incorrectly selecting the the first entry in
the 'matches' list as the matched entry. Fix this by noting down the result of
the call to of_match_node() and setting that as the matched entry.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/base.c