X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=drivers%2Finput%2Fmisc%2Ftwl4030-vibra.c;h=10c4e3d462f112f15ec9843093c5f988d44780b9;hb=d683477020be2036d6c2d7d2cd3ffac4f2acbd6c;hp=fc17b9592f5435238d980cc30d266a4ee399415a;hpb=65400a53cf376a52a6d77b7edb11f0c46d471698;p=uclinux-h8%2Flinux.git diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index fc17b9592f54..10c4e3d462f1 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c @@ -183,7 +183,8 @@ 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")) { + node = of_find_node_by_name(node, "codec"); + if (node) { of_node_put(node); return true; }