diff options
| author | Thierry Reding <treding@nvidia.com> | 2014-11-04 10:20:20 -0500 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 10:18:33 -0500 |
| commit | 9aaa0cebcb3ebabd52a2a269a50fe3525d8deed1 (patch) | |
| tree | e8530d7286aa990792ca0f215412673f066a6d02 /drivers | |
| parent | 1053f4dd82338ca82de46a23a11d51d7455b02c6 (diff) | |
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/tegra/output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index 022462d3a413..6a5c7b81fbc5 100644 --- 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) | |||
| 347 | if (gpio_is_valid(output->hpd_gpio)) | 347 | if (gpio_is_valid(output->hpd_gpio)) |
| 348 | disable_irq(output->hpd_irq); | 348 | disable_irq(output->hpd_irq); |
| 349 | 349 | ||
| 350 | if (output->panel) | ||
| 351 | drm_panel_detach(output->panel); | ||
| 352 | |||
| 350 | return 0; | 353 | return 0; |
| 351 | } | 354 | } |
