]> git.baikalelectronics.ru Git - kernel.git/commit
Input: twl4030-vibra - fix sibling-node lookup
authorJohan Hovold <johan@kernel.org>
Tue, 9 Jan 2018 01:15:06 +0000 (17:15 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Jan 2018 01:40:52 +0000 (17:40 -0800)
commit8f4d74875ddf9b99bb5e8ff3c4c2605b91c6f0c3
tree4a40a7f02e4abba352bf42020b5484bc8ec6eac0
parentd1ebb80d05e080754e96e74c0c38904119f39a1a
Input: twl4030-vibra - fix sibling-node lookup

A helper purported to look up a child node based on its name was using
the wrong of-helper and ended up prematurely freeing the parent of-node
while searching the whole device tree depth-first starting at the parent
node.

Fixes: 809acd2c937b ("input: twl4030-vibra: Support for DT booted kernel")
Fixes: 958eac0dc370 ("Input: twl4030-vibra - fix ERROR: Bad of_node_put() warning")
Cc: stable <stable@vger.kernel.org> # 3.7
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/twl4030-vibra.c