]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
gma500: psb_intel_crtc: Drop crtc_enable flag.
authorForest Bond <forest.bond@rapidrollout.com>
Mon, 13 Aug 2012 16:29:04 +0000 (16:29 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Aug 2012 23:43:27 +0000 (09:43 +1000)
This is set when setting DPMS on and off, but it isn't checked anywhere,
so just remove it.

Signed-off-by: Forest Bond <forest.bond@rapidrollout.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_intel_display.c
drivers/gpu/drm/gma500/psb_intel_drv.h

index 65cb248fa1fc7b54ba9e4a0dc2c659e49a35889a..3cfd0931fbfb1ce41013475ef70c62343b8b4cd8 100644 (file)
@@ -930,7 +930,6 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
                /* Give the overlay scaler a chance to enable
                 * if it's on this pipe */
                /* psb_intel_crtc_dpms_video(crtc, true); TODO */
-               psb_intel_crtc->crtc_enable = true;
                break;
        case DRM_MODE_DPMS_OFF:
                if (!psb_intel_crtc->active)
@@ -981,7 +980,6 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
 
                /* Wait for the clocks to turn off. */
                udelay(150);
-               psb_intel_crtc->crtc_enable = false;
                break;
        }
        cdv_intel_update_watermark(dev, crtc);
index c53e592604c8cb82415abfd4067a8b7b0ba24720..c9710ffa4843da63db6889295fcf42e612b121f1 100644 (file)
@@ -193,7 +193,6 @@ struct psb_intel_crtc {
        u32 mode_flags;
 
        bool active;
-       bool crtc_enable;
 
        /* Saved Crtc HW states */
        struct psb_intel_crtc_state *crtc_state;