]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: dsi: Fix OF platform depopulate
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Jan 2019 03:50:34 +0000 (05:50 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 6 Feb 2019 11:39:00 +0000 (13:39 +0200)
commit3bc3444d9ee6cf4e7bf60a69be7c6e1572d7cbc1
treee194ae0055d4f9994cc04ff829da0ac1a64aec98
parent349ad88d56d06741da74123709b10e8ac35b439a
drm/omap: dsi: Fix OF platform depopulate

Commit 011a9f7e037c ("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: 011a9f7e037c ("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
drivers/gpu/drm/omapdrm/dss/dsi.c