drm/i915: Removing the drrs capability enum initialization
authorRamalingam C <ramalingam.c@intel.com>
Mon, 23 Mar 2015 17:42:02 +0000 (23:12 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Mar 2015 09:27:03 +0000 (10:27 +0100)
As part of allocation of the drm_i915_private variable, drrs capability
enum is initialized to DRRS_NOT_SUPPORTED. Hence need not initialize at
each connector init.

Moreover initializing this enum at connector init will reset
the successful DRRS initialization of previous connector, as we have
the DRRS support for only one panel at a time.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c

index 637dd5376c82a56a13dda8c94b65eace055b4e59..0b26df9c78cb3e6e379be2273f622c46f7c63204 100644 (file)
@@ -5337,8 +5337,6 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,
        struct edid *edid;
        enum pipe pipe = INVALID_PIPE;
 
-       dev_priv->drrs.type = DRRS_NOT_SUPPORTED;
-
        if (!is_edp(intel_dp))
                return true;