backlight: tps65217_bl: Fix Device Tree node lookup
authorJohan Hovold <johan@kernel.org>
Mon, 20 Nov 2017 10:45:46 +0000 (11:45 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jun 2018 12:40:39 +0000 (13:40 +0100)
commit2b12dfa124dbadf391cb9a616aaa6b056823bf75
tree9f514e17dba27a618a86c86796aefc032c230e96
parentd1cc0ec3da23e44c23712579515494b374f111c9
backlight: tps65217_bl: Fix Device Tree 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.

This would only cause trouble if the child node is missing while there
is an unrelated node named "backlight" elsewhere in the tree.

Cc: stable <stable@vger.kernel.org> # 3.7
Fixes: eebfdc17cc6c ("backlight: Add TPS65217 WLED driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/tps65217_bl.c