OSDN Git Service

drm/msm: Remove bad calls to of_node_put()
authorArchit Taneja <architt@codeaurora.org>
Thu, 17 Nov 2016 06:42:03 +0000 (12:12 +0530)
committerRob Clark <robdclark@gmail.com>
Sun, 27 Nov 2016 16:35:07 +0000 (11:35 -0500)
commitd8dd80526c9097bd60464982a011150b1b213d06
tree7a0d6c75f0c6af2c66d692d068d7083a14558a41
parent9708ebbe1728e532a39e2acda868b3f8e892c512
drm/msm: Remove bad calls to of_node_put()

In add_components_mdp, we parse the endpoints in MDP output ports
using the helper for_each_endpoint_of_node(). Our function calls
of_node_put() on the endpoint node before we iterate over the
next one. This is already done by the helper, and results in
trying to decrement the refcount twice.

Remove the extra of_node_put calls. This fixes warnings seen when
we try to insert the driver as a module on IFC6410.

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c