]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: as3711_bl: Fix Device Tree node lookup
authorJohan Hovold <johan@kernel.org>
Mon, 20 Nov 2017 10:45:44 +0000 (11:45 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jun 2018 12:40:20 +0000 (13:40 +0100)
commitd8bdb6ba457077f218e7b3ed77b66087e2752548
treeaa5cb3df0c4b50454c7134c07c8f70eaef6bcca5
parente4bbbc65eedfb09ea7ed9ae27f5a8998eb952377
backlight: as3711_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.

To make things worse, the parent mfd node was also prematurely freed.

Cc: stable <stable@vger.kernel.org> # 3.10
Fixes: f3e697eae4a8 ("drivers/video/backlight/as3711_bl.c: add OF support")
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/as3711_bl.c