drm/sun4i: Fix component unbinding and component master deletion
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 18 Apr 2019 13:27:27 +0000 (15:27 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 18 Apr 2019 14:26:53 +0000 (16:26 +0200)
commitf5a9ed867c83875546c9aadd4ed8e785e9adcc3c
tree4a0693cb6cd91694eed0f5c2d50dbd19cafe7fe8
parent02b92adbe33e6dbd15dc6e32540b22f47c4ff0a2
drm/sun4i: Fix component unbinding and component master deletion

For our component-backed driver to be properly removed, we need to
delete the component master in sun4i_drv_remove and make sure to call
component_unbind_all in the master's unbind so that all components are
unbound when the master is.

Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418132727.5128-4-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_drv.c