media: camss: Fix OF node usage
authorTodor Tomov <todor.tomov@linaro.org>
Wed, 25 Jul 2018 16:38:15 +0000 (12:38 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 10:10:38 +0000 (06:10 -0400)
commit2004fc09b34128182ed26ec7b8f28190e5189061
treec5e583443b83096d7b0b4907c1d56a37caf1cd74
parentb873663bd85fff5e43bcedb5cc5360f2aa992e05
media: camss: Fix OF node usage

of_graph_get_next_endpoint increases the refcount of the returned
node and decreases the refcount of the passed node. Take this into
account and use of_node_put properly.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/camss/camss.c