diff options
author | 2016-07-04 16:49:50 +0800 | |
---|---|---|
committer | 2016-07-16 10:29:30 -0400 | |
commit | 2ca41c176a5d2197572153bf543a3f758c13a4d3 (patch) | |
tree | e222b2f2de34947e77beca9659cb704b55c4794c | |
parent | drm/msm: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() (diff) | |
download | linux-dev-2ca41c176a5d2197572153bf543a3f758c13a4d3.tar.xz linux-dev-2ca41c176a5d2197572153bf543a3f758c13a4d3.zip |
drm/msm: add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
[rebased on top of Archit's DT rework, so looses one hunk]
Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9cfa348fd2bb..26f859ec24b3 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -294,6 +294,7 @@ static int msm_init_vram(struct drm_device *dev) if (node) { struct resource r; ret = of_address_to_resource(node, 0, &r); + of_node_put(node); if (ret) return ret; size = r.end - r.start; |