Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60203c90 authored by Philipp Zabel's avatar Philipp Zabel
Browse files

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: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent b1318d50
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -757,6 +757,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master,
	for (i = 0; i < 2; i++) {
	for (i = 0; i < 2; i++) {
		struct imx_ldb_channel *channel = &imx_ldb->channel[i];
		struct imx_ldb_channel *channel = &imx_ldb->channel[i];


		if (channel->bridge)
			drm_bridge_detach(channel->bridge);
		if (channel->panel)
		if (channel->panel)
			drm_panel_detach(channel->panel);
			drm_panel_detach(channel->panel);