diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-09-09 09:16:11 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-09-19 11:56:15 -0400 |
commit | 90eac89726e6dee77a7997a0598a06df3adc1ac8 (patch) | |
tree | c40f0d3a542d1bb3b1dec381ddd2f25aa4e57454 /drivers/gpu/drm/exynos/exynos_drm_dpi.c | |
parent | 0ae460159faf0520228c554a728cc27d561d4b5b (diff) |
drm/exynos/dpi: unregister connector and panel on removal
During component removal it should unregister connector
and optionally detach the panel.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_dpi.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dpi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c index fa08f05e3e34..96c87db388fb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c | |||
@@ -342,8 +342,12 @@ int exynos_dpi_remove(struct device *dev) | |||
342 | struct exynos_dpi *ctx = exynos_dpi_display.ctx; | 342 | struct exynos_dpi *ctx = exynos_dpi_display.ctx; |
343 | 343 | ||
344 | exynos_dpi_dpms(&exynos_dpi_display, DRM_MODE_DPMS_OFF); | 344 | exynos_dpi_dpms(&exynos_dpi_display, DRM_MODE_DPMS_OFF); |
345 | |||
346 | exynos_dpi_connector_destroy(&ctx->connector); | ||
345 | encoder->funcs->destroy(encoder); | 347 | encoder->funcs->destroy(encoder); |
346 | drm_connector_cleanup(&ctx->connector); | 348 | |
349 | if (ctx->panel) | ||
350 | drm_panel_detach(ctx->panel); | ||
347 | 351 | ||
348 | exynos_drm_component_del(dev, EXYNOS_DEVICE_TYPE_CONNECTOR); | 352 | exynos_drm_component_del(dev, EXYNOS_DEVICE_TYPE_CONNECTOR); |
349 | 353 | ||