]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5ce7a5c2e8361a682ef25cf17cac25666c852de
tree9f514e17dba27a618a86c86796aefc032c230e96
parent33c5862e1478f0485ca9ffa896f51d05edf868c9
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: cb0e1490e05d ("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