diff options
author | Libo Chen <clbchenlibo.chen@huawei.com> | 2014-01-04 02:58:32 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-01-04 03:47:36 -0500 |
commit | a9e1d3c04a26bf9fdd9197cee61fa3a17778eb85 (patch) | |
tree | 52accc39aabae28519ed955155d67e4a7af413e0 /drivers/input | |
parent | 5cd3f8f89c38c2681a67290b6a463b12c2aede9e (diff) |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/twl4030-vibra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index d993775a7c39..960ef2a70910 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, | |||
185 | if (pdata && pdata->coexist) | 185 | if (pdata && pdata->coexist) |
186 | return true; | 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 | return true; | 190 | return true; |
191 | } | ||
190 | 192 | ||
191 | return false; | 193 | return false; |
192 | } | 194 | } |