drm: atmel-hlcdc: Fix OF graph parsing
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 3 Jun 2016 07:17:36 +0000 (09:17 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 21 Jun 2016 12:15:45 +0000 (14:15 +0200)
commit0b1e1eb76220afa043b2733dfe61f5927cf0e458
treee2281734d4c5424e4b2cf695519684febc0591cb
parent1b7e38b92b0bbd363369f5160f13f4d26140972d
drm: atmel-hlcdc: Fix OF graph parsing

atmel_hlcdc_create_outputs() iterates over OF graph nodes and releases
the node (using of_node_put()) after each iteration, which is wrong
since for_each_endpoint_of_node() is already taking care of that.

Move the of_node_put() call in the error path.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Fixes: 17a8e03e7e97 ("drm: atmel-hlcdc: rework the output code to support drm bridges")
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
This page took 0.0277 seconds and 5 git commands to generate.