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:
60203c9
)
drm/imx: parallel-display: detach bridge or panel on unbind
author
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 29 Aug 2016 09:13:27 +0000
(11:13 +0200)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 29 Aug 2016 14:30:48 +0000
(16:30 +0200)
Don't leave any bridge or panel 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/parallel-display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/imx/parallel-display.c
b/drivers/gpu/drm/imx/parallel-display.c
index f2033379072837c6fa77f5b0c0e991b20ef0ef84..d796ada2a47aba793ace3968454688ce134fcb3f 100644
(file)
--- a/
drivers/gpu/drm/imx/parallel-display.c
+++ b/
drivers/gpu/drm/imx/parallel-display.c
@@
-293,6
+293,11
@@
static void imx_pd_unbind(struct device *dev, struct device *master,
{
struct imx_parallel_display *imxpd = dev_get_drvdata(dev);
+ if (imxpd->bridge)
+ drm_bridge_detach(imxpd->bridge);
+ if (imxpd->panel)
+ drm_panel_detach(imxpd->panel);
+
kfree(imxpd->edid);
}