drm/exynos: dsi: Remove bridge node reference in removal 84/113984/4
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 9 Feb 2017 11:34:54 +0000 (20:34 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 13 Feb 2017 23:22:16 +0000 (15:22 -0800)
Since bridge node is referenced during in the probe, it should be
released on removal.

Change-Id: I54c0759098d44eff327889e6c21d6a8e585bbb38
Suggested-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c

index 599c249a544f49e59830cc91c2f05a1d5240014d..30cf58931635135b1004e7199d6e69da3e94f167 100644 (file)
@@ -1940,6 +1940,10 @@ err_pm:
 
 static int exynos_dsi_remove(struct platform_device *pdev)
 {
+       struct exynos_dsi *dsi = platform_get_drvdata(pdev);
+
+       of_node_put(dsi->bridge_node);
+
        component_del(&pdev->dev, &exynos_dsi_component_ops);
        pm_runtime_disable(&pdev->dev);