Skip to content

Commit 0940c52

Browse files
committed
drm/omap: dsi: Fix OF platform depopulate
Commit edb715d ("drm/omap: dss: dsi: Move initialization code from bind to probe") moved the of_platform_populate() call from dsi_bind() to dsi_probe(), but failed to move the corresponding of_platform_depopulate() from dsi_unbind() to dsi_remove(). This results in OF child devices being potentially removed multiple times. Fix it by placing the of_platform_depopulate() call where it belongs. Fixes: edb715d ("drm/omap: dss: dsi: Move initialization code from bind to probe") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190111035120.20668-4-laurent.pinchart@ideasonboard.com
1 parent 4df04ac commit 0940c52

File tree

1 file changed

+2
-2
lines changed
  • drivers/gpu/drm/omapdrm/dss

1 file changed

+2
-2
lines changed

drivers/gpu/drm/omapdrm/dss/dsi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5104,8 +5104,6 @@ static void dsi_unbind(struct device *dev, struct device *master, void *data)
51045104
dss_debugfs_remove_file(dsi->debugfs.irqs);
51055105
dss_debugfs_remove_file(dsi->debugfs.regs);
51065106

5107-
of_platform_depopulate(dev);
5108-
51095107
WARN_ON(dsi->scp_clk_refcount > 0);
51105108

51115109
dss_pll_unregister(&dsi->pll);
@@ -5457,6 +5455,8 @@ static int dsi_remove(struct platform_device *pdev)
54575455

54585456
dsi_uninit_output(dsi);
54595457

5458+
of_platform_depopulate(&pdev->dev);
5459+
54605460
pm_runtime_disable(&pdev->dev);
54615461

54625462
if (dsi->vdds_dsi_reg != NULL && dsi->vdds_dsi_enabled) {

0 commit comments

Comments
 (0)