提交 b1318d50 编写于 作者: L Lucas Stach 提交者: Philipp Zabel

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: NLucas Stach <l.stach@pengutronix.de>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 ac4708fa
......@@ -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);
kfree(channel->edid);
i2c_put_adapter(channel->ddc);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册