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)
commit4a9c8bb2aca5b5a2a15744333729745dd9903562
treeaa5cb3df0c4b50454c7134c07c8f70eaef6bcca5
parent840d40d941bf669669088732ef68606adb19feeb
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: 59eb2b5e57ea ("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