Skip to content

Commit

Permalink
gma500: psb_intel_crtc: Drop crtc_enable flag.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Forest Bond authored and Dave Airlie committed Aug 23, 2012
1 parent 28bbda3 commit f835bc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/gma500/cdv_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/gma500/psb_intel_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f835bc0

Please sign in to comment.