Commit 9aaa0ceb authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 1053f4dd
...@@ -347,5 +347,8 @@ int tegra_output_exit(struct tegra_output *output) ...@@ -347,5 +347,8 @@ int tegra_output_exit(struct tegra_output *output)
if (gpio_is_valid(output->hpd_gpio)) if (gpio_is_valid(output->hpd_gpio))
disable_irq(output->hpd_irq); disable_irq(output->hpd_irq);
if (output->panel)
drm_panel_detach(output->panel);
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment