aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_dsi.c
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2017-05-26 10:02:01 +0900
committerInki Dae <inki.dae@samsung.com>2017-05-29 09:51:19 +0900
commit70505c2ef94b7584dc24d6eaaeb0fc335b99813a (patch)
treeaca2149c7ced7fa18d754cfb907e9df11064141c /drivers/gpu/drm/exynos/exynos_drm_dsi.c
parentdrm/exynos: dsi: Fix the parse_dt function (diff)
downloadlinux-dev-70505c2ef94b7584dc24d6eaaeb0fc335b99813a.tar.xz
linux-dev-70505c2ef94b7584dc24d6eaaeb0fc335b99813a.zip
drm/exynos: dsi: Remove bridge node reference in removal
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>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_dsi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 24ab77c674ec..d404de86d5f9 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -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);