drm/exynos: dsi: Remove bridge node reference in removal
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Fri, 26 May 2017 01:02:01 +0000 (10:02 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 29 May 2017 00:51:19 +0000 (09:51 +0900)
Since bridge node is referenced during in the probe, it should be
released on removal.

Suggested-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c

index 24ab77c674ec328227a6f6684676bd6e55463168..d404de86d5f9de1d5fe07f856fe4a10fafdefd91 100644 (file)
@@ -1805,6 +1805,10 @@ static int exynos_dsi_probe(struct platform_device *pdev)
 
 static int exynos_dsi_remove(struct platform_device *pdev)
 {
+       struct exynos_dsi *dsi = platform_get_drvdata(pdev);
+
+       of_node_put(dsi->bridge_node);
+
        pm_runtime_disable(&pdev->dev);
 
        component_del(&pdev->dev, &exynos_dsi_component_ops);