aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2012-03-08 11:11:50 -0500
committerDave Airlie <airlied@redhat.com>2012-03-10 08:06:28 -0500
commitcbc5a1850d83bbf2676fa56c3badb2b9a442539e (patch)
treeb88f3d7ed3d70b380d4e6de864bb8b0520acf583 /drivers/gpu/drm/gma500
parentc7a5ae2f232e77ffd4e0713a6d72cb20471ae81c (diff)
gma500: mdfld_intel_display: drop unused variables
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r--drivers/gpu/drm/gma500/mdfld_intel_display.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_intel_display.c b/drivers/gpu/drm/gma500/mdfld_intel_display.c
index 55e5af5cbd3d..a35a2921bdf7 100644
--- a/drivers/gpu/drm/gma500/mdfld_intel_display.c
+++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c
@@ -380,7 +380,6 @@ static void mdfld_crtc_dpms(struct drm_crtc *crtc, int mode)
380 u32 pipestat_reg = PIPEASTAT; 380 u32 pipestat_reg = PIPEASTAT;
381 u32 pipeconf = dev_priv->pipeconf[pipe]; 381 u32 pipeconf = dev_priv->pipeconf[pipe];
382 u32 temp; 382 u32 temp;
383 bool enabled;
384 int timeout = 0; 383 int timeout = 0;
385 384
386 dev_dbg(dev->dev, "mode = %d, pipe = %d\n", mode, pipe); 385 dev_dbg(dev->dev, "mode = %d, pipe = %d\n", mode, pipe);
@@ -566,7 +565,6 @@ static void mdfld_crtc_dpms(struct drm_crtc *crtc, int mode)
566 } 565 }
567 break; 566 break;
568 } 567 }
569 enabled = crtc->enabled && mode != DRM_MODE_DPMS_OFF;
570 gma_power_end(dev); 568 gma_power_end(dev);
571} 569}
572 570
@@ -787,7 +785,6 @@ static int mdfld_crtc_mode_set(struct drm_crtc *crtc,
787 struct mrst_clock_t clock; 785 struct mrst_clock_t clock;
788 bool ok; 786 bool ok;
789 u32 dpll = 0, fp = 0; 787 u32 dpll = 0, fp = 0;
790 bool is_crt = false, is_lvds = false, is_tv = false;
791 bool is_mipi = false, is_mipi2 = false, is_hdmi = false; 788 bool is_mipi = false, is_mipi2 = false, is_hdmi = false;
792 struct drm_mode_config *mode_config = &dev->mode_config; 789 struct drm_mode_config *mode_config = &dev->mode_config;
793 struct psb_intel_encoder *psb_intel_encoder = NULL; 790 struct psb_intel_encoder *psb_intel_encoder = NULL;
@@ -898,15 +895,6 @@ static int mdfld_crtc_mode_set(struct drm_crtc *crtc,
898 psb_intel_encoder = psb_intel_attached_encoder(connector); 895 psb_intel_encoder = psb_intel_attached_encoder(connector);
899 896
900 switch (psb_intel_encoder->type) { 897 switch (psb_intel_encoder->type) {
901 case INTEL_OUTPUT_LVDS:
902 is_lvds = true;
903 break;
904 case INTEL_OUTPUT_TVOUT:
905 is_tv = true;
906 break;
907 case INTEL_OUTPUT_ANALOG:
908 is_crt = true;
909 break;
910 case INTEL_OUTPUT_MIPI: 898 case INTEL_OUTPUT_MIPI:
911 is_mipi = true; 899 is_mipi = true;
912 break; 900 break;