[PATCH] drm: atmel-hlcdc: Fix OF graph parsing

2016-06-21 Thread Nicolas Ferre
Le 03/06/2016 09:26, Boris Brezillon a écrit : > 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

[PATCH] drm: atmel-hlcdc: Fix OF graph parsing

2016-06-03 Thread Boris Brezillon
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 Fixes: 17a8e0