diff options
| author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-08-29 05:12:30 -0400 |
|---|---|---|
| committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-08-29 10:30:48 -0400 |
| commit | 60203c90bfec627b619643523cbc17f0005964f7 (patch) | |
| tree | aa1a74a212a74646f5e68de4abeaa4d9cb62bdd2 /drivers/gpu/drm/imx | |
| parent | b1318d50a0dddda4f4facfedf757a5a328ddfd94 (diff) | |
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>
Diffstat (limited to 'drivers/gpu/drm/imx')
| -rw-r--r-- | drivers/gpu/drm/imx/imx-ldb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index 27a471c5e7c9..3ce391c239b0 100644 --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c | |||
| @@ -757,6 +757,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master, | |||
| 757 | for (i = 0; i < 2; i++) { | 757 | for (i = 0; i < 2; i++) { |
| 758 | struct imx_ldb_channel *channel = &imx_ldb->channel[i]; | 758 | struct imx_ldb_channel *channel = &imx_ldb->channel[i]; |
| 759 | 759 | ||
| 760 | if (channel->bridge) | ||
| 761 | drm_bridge_detach(channel->bridge); | ||
| 760 | if (channel->panel) | 762 | if (channel->panel) |
| 761 | drm_panel_detach(channel->panel); | 763 | drm_panel_detach(channel->panel); |
| 762 | 764 | ||
