projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1053f4d
)
drm/tegra: Detach panel when a connector is removed
author
Thierry Reding
<treding@nvidia.com>
Tue, 4 Nov 2014 15:20:20 +0000
(16:20 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 15:18:33 +0000
(16:18 +0100)
When the DRM device is torn down and the connector is removed, make sure
to detach the panel to make sure there are no dangling pointers.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/output.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/output.c
b/drivers/gpu/drm/tegra/output.c
index 022462d3a4133f97d2a564e3a751220df19f70dd..6a5c7b81fbc5d6453c7b96ab57339400504a913c 100644
(file)
--- a/
drivers/gpu/drm/tegra/output.c
+++ b/
drivers/gpu/drm/tegra/output.c
@@
-347,5
+347,8
@@
int tegra_output_exit(struct tegra_output *output)
if (gpio_is_valid(output->hpd_gpio))
disable_irq(output->hpd_irq);
+ if (output->panel)
+ drm_panel_detach(output->panel);
+
return 0;
}