Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: twl4030-vibra - add missing of_node_put

We should drop reference to twl6040_core_node device_node once we are done
using it.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Libo Chen and committed by
Dmitry Torokhov
a9e1d3c0 5cd3f8f8

+3 -1
+3 -1
drivers/input/misc/twl4030-vibra.c
··· 185 185 if (pdata && pdata->coexist) 186 186 return true; 187 187 188 - if (of_find_node_by_name(node, "codec")) 188 + if (of_find_node_by_name(node, "codec")) { 189 + of_node_put(node); 189 190 return true; 191 + } 190 192 191 193 return false; 192 194 }