MGS-2698-6 [#imx-188] fix device node reference
authorXianzhong <xianzhong.li@nxp.com>
Sun, 19 Mar 2017 02:47:38 +0000 (10:47 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:36 +0000 (15:21 -0500)
remove the duplicated of_node_put for imx gpu subsystem,
this change only fix the gpu driver problem for i.mx8.

Date: Mar 19, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c

index a29ad2b..89706ec 100644 (file)
@@ -499,7 +499,6 @@ gckPLATFORM_AdjustParam(
                 continue;
             }
             component_match_add(&pdev->dev, &match, compare_of, core_node);
-            of_node_put(core_node);
 
             pdev_gpu = of_find_device_by_node(core_node);
             if (!pdev_gpu) {