drm/imx: imx-ldb: detach existing panels when unbinding the driver
Subsystems (3)
PATCH 1/1 drm/imx: imx-ldb: detach existing panels when unbinding the driver
We should detach existing panels when unbinding the driver since they are attached at the binding stage, otherwise, the attaching function would return the -EBUSY value when the ldb driver module is installed again.
Signed-off-by Liu Ying <[email protected]>
--- drivers/gpu/drm/imx/imx-ldb.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/imx/imx-ldb.c +3 -0
@@ -757,6 +757,9 @@ static void imx_ldb_unbind(struct device *dev, struct device *master,for (i =0 ; i <2 ; i++) {struct imx_ldb_channel *channel = &imx_ldb->channel[i]; +if (channel->panel) +drm_panel_detach (channel->panel); +if (!channel->connector.funcs)continue ;
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel