diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-07-04 16:49:50 +0800 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-07-16 10:29:30 -0400 |
commit | 2ca41c176a5d2197572153bf543a3f758c13a4d3 (patch) | |
tree | e222b2f2de34947e77beca9659cb704b55c4794c /drivers/gpu/drm/msm | |
parent | d13b33fa7d76b8f7cbf0212d570aa82887b6db0f (diff) | |
download | blackbird-obmc-linux-2ca41c176a5d2197572153bf543a3f758c13a4d3.tar.gz blackbird-obmc-linux-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>
Diffstat (limited to 'drivers/gpu/drm/msm')
-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; |