From: Libo Chen Date: Sat, 4 Jan 2014 07:58:32 +0000 (-0800) Subject: Input: twl4030-vibra - add missing of_node_put X-Git-Tag: v3.14-rc1~104^2^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a9e1d3c04a26bf9fdd9197cee61fa3a17778eb85;p=~emulex%2Finfiniband.git 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 Acked-by: Peter Ujfalusi Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index d993775a7c3..960ef2a7091 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c @@ -185,8 +185,10 @@ static bool twl4030_vibra_check_coexist(struct twl4030_vibra_data *pdata, if (pdata && pdata->coexist) return true; - if (of_find_node_by_name(node, "codec")) + if (of_find_node_by_name(node, "codec")) { + of_node_put(node); return true; + } return false; }