drm/tegra: Detach panel when a connector is removed

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>
This commit is contained in:
Thierry Reding 2014-11-04 16:20:20 +01:00
parent 1053f4dd82
commit 9aaa0cebcb
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}