]> git.karo-electronics.de Git - karo-tx-linux.git/commit
video: exynos_dp: add missing of_node_put()
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:13:43 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:09 +0000 (16:52 +1100)
commitb74c607f9184ca5b088661be2771961832353840
tree38441b3a002fc021468ec3f4ce8a8ca8875188f6
parent92044e11eb153d3c45619233cec7971a0b9b1745
video: exynos_dp: 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: Jingoo Han <jg1.han@samsung.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/exynos/exynos_dp_core.c