gma500: psb_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>
This commit is contained in:
committed by
Dave Airlie
parent
3c1d08d7af
commit
2e33d6b92f
@@ -433,7 +433,6 @@ static void psb_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
|
|||||||
int dspbase_reg = (pipe == 0) ? DSPABASE : DSPBBASE;
|
int dspbase_reg = (pipe == 0) ? DSPABASE : DSPBBASE;
|
||||||
int pipeconf_reg = (pipe == 0) ? PIPEACONF : PIPEBCONF;
|
int pipeconf_reg = (pipe == 0) ? PIPEACONF : PIPEBCONF;
|
||||||
u32 temp;
|
u32 temp;
|
||||||
bool enabled;
|
|
||||||
|
|
||||||
/* XXX: When our outputs are all unaware of DPMS modes other than off
|
/* XXX: When our outputs are all unaware of DPMS modes other than off
|
||||||
* and on, we should map those modes to DRM_MODE_DPMS_OFF in the CRTC.
|
* and on, we should map those modes to DRM_MODE_DPMS_OFF in the CRTC.
|
||||||
@@ -518,8 +517,6 @@ static void psb_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
enabled = crtc->enabled && mode != DRM_MODE_DPMS_OFF;
|
|
||||||
|
|
||||||
/*Set FIFO Watermarks*/
|
/*Set FIFO Watermarks*/
|
||||||
REG_WRITE(DSPARB, 0x3F3E);
|
REG_WRITE(DSPARB, 0x3F3E);
|
||||||
}
|
}
|
||||||
@@ -611,8 +608,8 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc,
|
|||||||
int refclk;
|
int refclk;
|
||||||
struct psb_intel_clock_t clock;
|
struct psb_intel_clock_t clock;
|
||||||
u32 dpll = 0, fp = 0, dspcntr, pipeconf;
|
u32 dpll = 0, fp = 0, dspcntr, pipeconf;
|
||||||
bool ok, is_sdvo = false, is_dvo = false;
|
bool ok, is_sdvo = false;
|
||||||
bool is_crt = false, is_lvds = false, is_tv = false;
|
bool is_lvds = false, is_tv = false;
|
||||||
struct drm_mode_config *mode_config = &dev->mode_config;
|
struct drm_mode_config *mode_config = &dev->mode_config;
|
||||||
struct drm_connector *connector;
|
struct drm_connector *connector;
|
||||||
|
|
||||||
@@ -637,15 +634,9 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc,
|
|||||||
case INTEL_OUTPUT_SDVO:
|
case INTEL_OUTPUT_SDVO:
|
||||||
is_sdvo = true;
|
is_sdvo = true;
|
||||||
break;
|
break;
|
||||||
case INTEL_OUTPUT_DVO:
|
|
||||||
is_dvo = true;
|
|
||||||
break;
|
|
||||||
case INTEL_OUTPUT_TVOUT:
|
case INTEL_OUTPUT_TVOUT:
|
||||||
is_tv = true;
|
is_tv = true;
|
||||||
break;
|
break;
|
||||||
case INTEL_OUTPUT_ANALOG:
|
|
||||||
is_crt = true;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user