diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-09 15:44:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-09 17:00:36 +0100 |
commit | f875c15a4fbf37534dda30771d8bde8604fbbf09 (patch) | |
tree | 6c90c65af1198bf1c9a2120e4480837b59a115be /drivers/gpu/drm/i915/intel_lvds.c | |
parent | 4ef69c7a64b78d477d1666eba258ca049e8bac91 (diff) | |
download | blackbird-op-linux-f875c15a4fbf37534dda30771d8bde8604fbbf09.tar.gz blackbird-op-linux-f875c15a4fbf37534dda30771d8bde8604fbbf09.zip |
drm/i915: Use the direct mapping of pipe->crtc
Why iterate all the crtcs to find the pipe, when we already know which
crtc is attached to which pipe?
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index ed1c87636814..987973f4ff7d 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -932,7 +932,7 @@ void intel_lvds_init(struct drm_device *dev) lvds = I915_READ(LVDS); pipe = (lvds & LVDS_PIPEB_SELECT) ? 1 : 0; - crtc = intel_get_crtc_from_pipe(dev, pipe); + crtc = intel_get_crtc_for_pipe(dev, pipe); if (crtc && (lvds & LVDS_PORT_EN)) { dev_priv->panel_fixed_mode = intel_crtc_mode_get(dev, crtc); |