]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/gpu/drm/i915/intel_lvds.c
drm/i915: Intel panel detection cleanup
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / i915 / intel_lvds.c
index ea1ce17d8e4af4a6c137ad3cb8453dce8b5885be..9ca4dc4d237861c963635bee9202ba14f2188240 100644 (file)
@@ -460,13 +460,13 @@ static bool intel_lvds_compute_config(struct intel_encoder *intel_encoder,
 static enum drm_connector_status
 intel_lvds_detect(struct drm_connector *connector, bool force)
 {
-       struct drm_device *dev = connector->dev;
+       struct drm_i915_private *dev_priv = to_i915(connector->dev);
        enum drm_connector_status status;
 
        DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
                      connector->base.id, connector->name);
 
-       status = intel_panel_detect(dev);
+       status = intel_panel_detect(dev_priv);
        if (status != connector_status_unknown)
                return status;