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

Commit b1318d50 authored by Lucas Stach's avatar Lucas Stach Committed by Philipp Zabel
Browse files

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



Make sure to leave a clean panel state behind and allow to
properly attach to the panel again on a rebind.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent ac4708fa
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -757,6 +757,9 @@ 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->panel)
			drm_panel_detach(channel->panel);

		kfree(channel->edid);
		kfree(channel->edid);
		i2c_put_adapter(channel->ddc);
		i2c_put_adapter(channel->ddc);
	}
	}