Skip to content

Commit

Permalink
drm/exynos: dsi: Remove bridge node reference in removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hoegeun Kwon authored and Inki Dae committed May 29, 2017
1 parent f2921d8 commit 70505c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/exynos/exynos_drm_dsi.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 70505c2

Please sign in to comment.