drm/i915: remove unused intel_pipe_get_connector()
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 29 Mar 2010 08:54:31 +0000 (16:54 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 12 Apr 2010 16:23:56 +0000 (09:23 -0700)
Added by original eDP support patch, not used any more.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c

index ecf554aa768a6758f6223d306a8faa7dd96e38e1..3ee68bcce7b0ec61b1500f983e7876520e9e20d9 100644 (file)
@@ -753,23 +753,6 @@ bool intel_pipe_has_type (struct drm_crtc *crtc, int type)
     return false;
 }
 
-static struct drm_connector *
-intel_pipe_get_connector (struct drm_crtc *crtc)
-{
-    struct drm_device *dev = crtc->dev;
-    struct drm_mode_config *mode_config = &dev->mode_config;
-    struct drm_connector *l_entry, *ret = NULL;
-
-    list_for_each_entry(l_entry, &mode_config->connector_list, head) {
-           if (l_entry->encoder &&
-               l_entry->encoder->crtc == crtc) {
-                   ret = l_entry;
-                   break;
-           }
-    }
-    return ret;
-}
-
 #define INTELPllInvalid(s)   do { /* DRM_DEBUG(s); */ return false; } while (0)
 /**
  * Returns whether the given set of divisors are valid for a given refclk with