[media] exynos4-is: Put node before s5pcsis_parse_dt() return error
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 4 Mar 2016 20:20:12 +0000 (17:20 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 19:23:14 +0000 (16:23 -0300)
commit5790a1589f746d5648825d3bc8367f0ce7b12784
treedbe2df77215f83983437ae105ba6d40534d63821
parent7e8da343a31623decc7fd0ee66700ba50260aca7
[media] exynos4-is: Put node before s5pcsis_parse_dt() return error

The MIPI CSIS DT parse function return an -ENXIO errno if the port #
is outside of the supported values. But it doesn't call of_node_put()
to decrement the node's reference counter, that's incremented inside
the of_graph_get_next_endpoint() function that was called before.

Instead of just returning, go to the error path that already does it.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/exynos4-is/mipi-csis.c