diff options
author | Archit Taneja <architt@codeaurora.org> | 2015-06-04 12:31:57 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-08-16 01:27:22 +0300 |
commit | 14bb28b0f91f868f081f71eb0c7b590e13527c3c (patch) | |
tree | cf0a5f7326e74ba31d15b7b6d1503cf00155f0bc /drivers/gpu/drm/msm | |
parent | 78b1d470d57dd7a6e0efda63ebad97f0d44e817c (diff) | |
download | linux-14bb28b0f91f868f081f71eb0c7b590e13527c3c.tar.xz |
drm/msm: dsi host: add missing of_node_put()
Decrement device node refcount if of_get_child_by_name is successfully
called.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index c05a55eca16f..ef60aef6e03b 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1605,8 +1605,12 @@ int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer) node = of_get_child_by_name(msm_host->pdev->dev.of_node, "panel"); if (node) { - if (!of_drm_find_panel(node)) + if (!of_drm_find_panel(node)) { + of_node_put(node); return -EPROBE_DEFER; + } + + of_node_put(node); } } } |