]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:16 +0000 (14:04 -0700)
commit9ad6577716a582adf143d158fd0d00e0bb4878e5
tree6131229d95bc4167efe679ea91ce70591156db58
parent1fd9d92134d8a755715fc33e30b1f8cb6f97b83b
drm/omap: dsi: Fix OF platform depopulate

[ Upstream commit 0940c52742de0d2f70ba687bfd5fe8aa38c5f27d ]

Commit edb715dffdee ("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: edb715dffdee ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/omapdrm/dss/dsi.c