mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 14:26:41 +07:00
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>
This commit is contained in:
parent
b1318d50a0
commit
60203c90bf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user