]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/video/backlight/88pm860x_bl.c: add missing of_node_put()
authorAxel Lin <axel.lin@ingics.com>
Thu, 7 Feb 2013 01:27:35 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:09 +0000 (16:47 +1100)
commit4c09690361b21c4f88bb6fffc572e7af8127c949
treedeadde9c5c49d8fa08a14be6603b638abcd4db95
parent3557b713a7aabc356b56f79358f57ba88c74ba95
drivers/video/backlight/88pm860x_bl.c: add missing of_node_put()

of_find_node_by_name() returns a node pointer with refcount incremented,
use of_node_put() on it when done.

of_find_node_by_name() will call of_node_put() against the node pass to
from parameter, thus we also need to call of_node_get(from) before calling
of_find_node_by_name().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/88pm860x_bl.c