projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1318d5
)
drm/imx: imx-ldb: detach bridge on unbind
author
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 29 Aug 2016 09:12:30 +0000
(11:12 +0200)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 29 Aug 2016 14:30:48 +0000
(16:30 +0200)
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>
drivers/gpu/drm/imx/imx-ldb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/imx/imx-ldb.c
b/drivers/gpu/drm/imx/imx-ldb.c
index 27a471c5e7c95270fc2dbe3e405f50d092edd820..3ce391c239b02ace097ab4fbfb89deaaebb24618 100644
(file)
--- 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,
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);