drm/tegra: dc: No longer disable planes at CRTC disable
authorThierry Reding <treding@nvidia.com>
Mon, 17 Nov 2014 14:14:48 +0000 (15:14 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:45 +0000 (10:14 +0100)
The DRM core should take care of disabling all unneeded planes, so there
is no need to do this explicitly.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

index f8ad5ed6e0e7987523bcfb302ca8dec0ba1f3857..d51173056a9ef56f365e9dbb420c98152d6f7793 100644 (file)
@@ -994,20 +994,6 @@ static int tegra_dc_wait_idle(struct tegra_dc *dc, unsigned long timeout)
 static void tegra_crtc_disable(struct drm_crtc *crtc)
 {
        struct tegra_dc *dc = to_tegra_dc(crtc);
-       struct drm_device *drm = crtc->dev;
-       struct drm_plane *plane;
-
-       drm_for_each_legacy_plane(plane, &drm->mode_config.plane_list) {
-               if (plane->crtc == crtc) {
-                       tegra_window_plane_disable(plane);
-                       plane->crtc = NULL;
-
-                       if (plane->fb) {
-                               drm_framebuffer_unreference(plane->fb);
-                               plane->fb = NULL;
-                       }
-               }
-       }
 
        if (!tegra_dc_idle(dc)) {
                tegra_dc_stop(dc);