Browse Source

drm/imx: imx-ldb: detach bridge on unbind

Don't leave the bridge attached to a stale driver instance when
unbinding, to allow reattachment on a rebind.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Philipp Zabel 9 năm trước cách đây
mục cha
commit
60203c90bf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/gpu/drm/imx/imx-ldb.c

+ 2 - 0
drivers/gpu/drm/imx/imx-ldb.c

@@ -757,6 +757,8 @@ 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->bridge)
+			drm_bridge_detach(channel->bridge);
 		if (channel->panel)
 			drm_panel_detach(channel->panel);