Skip to content

Commit

Permalink
Input: twl4030-vibra - add missing of_node_put
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Libo Chen authored and Dmitry Torokhov committed Jan 4, 2014
1 parent 5cd3f8f commit a9e1d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/input/misc/twl4030-vibra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a9e1d3c

Please sign in to comment.