diff options
author | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2017-05-25 21:02:01 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-05-28 20:51:19 -0400 |
commit | 70505c2ef94b7584dc24d6eaaeb0fc335b99813a (patch) | |
tree | aca2149c7ced7fa18d754cfb907e9df11064141c | |
parent | f2921d8c4899a3d9d7c6326315c24efea2c9efd9 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 |
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) | |||
1805 | 1805 | ||
1806 | static int exynos_dsi_remove(struct platform_device *pdev) | 1806 | static int exynos_dsi_remove(struct platform_device *pdev) |
1807 | { | 1807 | { |
1808 | struct exynos_dsi *dsi = platform_get_drvdata(pdev); | ||
1809 | |||
1810 | of_node_put(dsi->bridge_node); | ||
1811 | |||
1808 | pm_runtime_disable(&pdev->dev); | 1812 | pm_runtime_disable(&pdev->dev); |
1809 | 1813 | ||
1810 | component_del(&pdev->dev, &exynos_dsi_component_ops); | 1814 | component_del(&pdev->dev, &exynos_dsi_component_ops); |