drm/i915: Remove intel_modeset_disable()
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 8 Aug 2013 21:28:58 +0000 (22:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 9 Aug 2013 08:46:10 +0000 (10:46 +0200)
Caught by the dead code police!

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h

index 1f9766a4238e76044ea19a72235bbe454487edb2..1fd891554e5fc8ac0933c2c2d513ba1b09fefde3 100644 (file)
@@ -3871,16 +3871,6 @@ static void intel_crtc_disable(struct drm_crtc *crtc)
        }
 }
 
-void intel_modeset_disable(struct drm_device *dev)
-{
-       struct drm_crtc *crtc;
-
-       list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
-               if (crtc->enabled)
-                       intel_crtc_disable(crtc);
-       }
-}
-
 void intel_encoder_destroy(struct drm_encoder *encoder)
 {
        struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
index 09c919658735b03f3517ea8b07c232ca49f16fb9..a70a0d04a0e532b332784bd7c62752fc7a24b6e9 100644 (file)
@@ -578,7 +578,6 @@ struct intel_set_config {
 
 extern int intel_set_mode(struct drm_crtc *crtc, struct drm_display_mode *mode,
                          int x, int y, struct drm_framebuffer *old_fb);
-extern void intel_modeset_disable(struct drm_device *dev);
 extern void intel_crtc_restore_mode(struct drm_crtc *crtc);
 extern void intel_crtc_load_lut(struct drm_crtc *crtc);
 extern void intel_crtc_update_dpms(struct drm_crtc *crtc);