Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f835bc0f authored by Forest Bond's avatar Forest Bond Committed by Dave Airlie
Browse files

gma500: psb_intel_crtc: Drop crtc_enable flag.



This is set when setting DPMS on and off, but it isn't checked anywhere,
so just remove it.

Signed-off-by: default avatarForest Bond <forest.bond@rapidrollout.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 28bbda39
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
+0 −1
Original line number Diff line number Diff line
@@ -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;