]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smsm: fix child-node lookup
authorJohan Hovold <johan@kernel.org>
Wed, 15 Nov 2017 11:07:24 +0000 (12:07 +0100)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Dec 2017 21:38:34 +0000 (15:38 -0600)
commit15b3bb2f5c501aab732b02add1d8904c289f39de
tree2c09f6e2a1de8e8f9d4ccc48ed50e49c630a6111
parentd8a1606430d3415c410cbc8d7ad63db1ab2a7f24
soc: qcom: smsm: fix child-node lookup

Fix child-node lookup during probe, which ended up searching the whole
device tree depth-first starting at the parent rather than just matching
on its children.

Note that the original premature free of the parent node has already
been fixed separately.

Also note that this pattern of looking up the first child node with a
given property is rare enough that a generic helper is probably not
warranted.

Fixes: 42f790ad0e13 ("soc: qcom: smsm: Add driver for Qualcomm SMSM")
Fixes: df17b0efb87e ("soc: qcom: smsm: fix of_node refcnting problem")
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smsm.c