From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: airlied@linux.ie, dri-devel@lists.freedesktop.org
Subject: [PATCH 27/47] gma500: cdv_intel_crt: drop unused variables
Date: Thu, 08 Mar 2012 16:10:10 +0000 [thread overview]
Message-ID: <20120308161007.7973.44223.stgit@bob.linux.org.uk> (raw)
In-Reply-To: <20120308155914.7973.16588.stgit@bob.linux.org.uk>
From: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
---
drivers/gpu/drm/gma500/cdv_intel_display.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c
index 5803730..7935061 100644
--- a/drivers/gpu/drm/gma500/cdv_intel_display.c
+++ b/drivers/gpu/drm/gma500/cdv_intel_display.c
@@ -569,7 +569,6 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
int dspbase_reg = (pipe == 0) ? DSPABASE : DSPBBASE;
int pipeconf_reg = (pipe == 0) ? PIPEACONF : PIPEBCONF;
u32 temp;
- bool enabled;
/* 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.
@@ -663,7 +662,6 @@ static void cdv_intel_crtc_dpms(struct drm_crtc *crtc, int mode)
udelay(150);
break;
}
- enabled = crtc->enabled && mode != DRM_MODE_DPMS_OFF;
/*Set FIFO Watermarks*/
REG_WRITE(DSPARB, 0x3F3E);
}
@@ -729,7 +727,7 @@ static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc,
int refclk;
struct cdv_intel_clock_t clock;
u32 dpll = 0, dspcntr, pipeconf;
- bool ok, is_sdvo = false, is_dvo = false;
+ bool ok;
bool is_crt = false, is_lvds = false, is_tv = false;
bool is_hdmi = false;
struct drm_mode_config *mode_config = &dev->mode_config;
@@ -747,12 +745,6 @@ static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc,
case INTEL_OUTPUT_LVDS:
is_lvds = true;
break;
- case INTEL_OUTPUT_SDVO:
- is_sdvo = true;
- break;
- case INTEL_OUTPUT_DVO:
- is_dvo = true;
- break;
case INTEL_OUTPUT_TVOUT:
is_tv = true;
break;
next prev parent reply other threads:[~2012-03-08 15:55 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 15:59 [PATCH 00/47] GMA500 updates for -next Alan Cox
2012-03-08 16:00 ` [PATCH 01/47] gma500: plug in more of the gamma functionality Alan Cox
2012-03-08 16:00 ` [PATCH 02/47] gma500: clean up some of the struct fields we no longer use Alan Cox
2012-03-08 16:00 ` [PATCH 03/47] gma500: now move the Oaktrail save state into its own structure Alan Cox
2012-03-08 16:00 ` [PATCH 04/47] gma500: Kconfig documentation tweak Alan Cox
2012-03-08 16:00 ` [PATCH 05/47] intel, gma500, lvds: Fix use after free and mem leak in psb_intel_lvds_init() Alan Cox
2012-03-08 16:01 ` [PATCH 06/47] gma500: re-order calling on the fix setup so we set up after the DRM layer Alan Cox
2012-03-08 16:01 ` [PATCH 07/47] gma500: make init_pm callback in struct psb_op optional Alan Cox
2012-03-08 16:02 ` [PATCH 08/47] gma500: rework register stuff sanely Alan Cox
2012-03-08 16:02 ` [PATCH 09/47] gma500: initial medfield merge Alan Cox
2012-03-08 16:02 ` [PATCH 10/47] gma500: psbfb_create(): move depth initialization out of loop Alan Cox
2012-03-08 16:02 ` [PATCH 11/47] gma500: mdfld_dsi_output_init() drop unused parameter Alan Cox
2012-03-08 16:03 ` [PATCH 12/47] gma500: medfield: drop a bit of dead code Alan Cox
2012-03-08 16:03 ` [PATCH 13/47] gma500: gem_glue: add missing include Alan Cox
2012-03-08 16:03 ` [PATCH 14/47] gma500: drop unused psbfb_suspend()/psbfb_resume() Alan Cox
2012-03-08 16:03 ` [PATCH 15/47] gma500: mark psb_fbdev_destroy() and psb_fbdev_fini() as static Alan Cox
2012-03-08 16:03 ` [PATCH 16/47] gma500: gtt: mark psb_gtt_entry() and psb_gtt_alloc() " Alan Cox
2012-03-08 16:04 ` [PATCH 17/47] gma500: mmu: drop unused psb_get_default_pd_addr() Alan Cox
2012-03-08 16:04 ` [PATCH 18/47] gma500: mmu: mark psb_mmu_free_pt() and psb_mmu_pt_alloc_map_lock() as static Alan Cox
2012-03-08 16:04 ` [PATCH 19/47] gma500: use DRM_IOCTL_DEF_DRV instead of custom PSB_IOCTL_DEF Alan Cox
2012-03-08 16:04 ` [PATCH 20/47] gma500: fix ioctl confict Alan Cox
2012-03-08 16:05 ` [PATCH 21/47] gma500: psb_driver_load(): drop unused variables Alan Cox
2012-03-08 16:08 ` [PATCH 22/47] gma500: mark psb_driver_device_is_agp() and psb_driver_preclose() as static Alan Cox
2012-03-08 16:09 ` [PATCH 23/47] gma500: fix two -Wmissing-field-initializers warnings Alan Cox
2012-03-08 16:09 ` [PATCH 24/47] gma500: fix cdv_intel_wait_for_vblank() prototype Alan Cox
2012-03-08 16:09 ` [PATCH 25/47] gma500: cdv_intel_crt: add missing include Alan Cox
2012-03-08 16:09 ` [PATCH 26/47] gma500: cdv_intel_crt: drop dead code Alan Cox
2012-03-08 16:10 ` Alan Cox [this message]
2012-03-08 16:10 ` [PATCH 28/47] gma500: cdv_intel_crt: mark few functions as static Alan Cox
2012-03-08 16:10 ` [PATCH 29/47] gma500: cdv_intel_hdmi: add missing include Alan Cox
2012-03-08 16:10 ` [PATCH 30/47] gma500: cdv_intel_lvds: mark few functions as static Alan Cox
2012-03-08 16:11 ` [PATCH 31/47] gma500: cdv_intel_lvds: #if 0 currently unused functions Alan Cox
2012-03-08 16:11 ` [PATCH 32/47] gma500: mdfld_device: mark few functions as static Alan Cox
2012-03-08 16:11 ` [PATCH 33/47] gma500: mdfld_dsi_dpi: drop unused variables Alan Cox
2012-03-08 16:11 ` [PATCH 34/47] gma500: mdfld_dsi_pkg_sender: fix -Wtype-limits warning Alan Cox
2012-03-08 16:11 ` [PATCH 35/47] gma500: mdfld_intel_display: drop unused variables Alan Cox
2012-03-08 16:12 ` [PATCH 36/47] gma500: oaktrail_crtc: mark few functions as static Alan Cox
2012-03-08 16:12 ` [PATCH 37/47] gma500: oaktrail_crtc: drop unused variables Alan Cox
2012-03-08 16:12 ` [PATCH 38/47] gma500: oaktrail_hdmi: drop dead code Alan Cox
2012-03-08 16:12 ` [PATCH 39/47] gma500: oaktrail_hdmi: fix -Wmissing-field-initializers warning Alan Cox
2012-03-08 16:13 ` [PATCH 40/47] gma500: mark oaktrail_backlight_init() as static Alan Cox
2012-03-08 16:13 ` [PATCH 41/47] gma500: oaktrail_hdmi_i2c_access() drop unused variable Alan Cox
2012-03-08 16:14 ` [PATCH 42/47] gma500: oaktrail_lvds_init() " Alan Cox
2012-03-08 16:14 ` [PATCH 43/47] gma500: drop unused psb_intel_modeset_cleanup() Alan Cox
2012-03-08 16:14 ` [PATCH 44/47] gma500: mark psb_intel_pipe_set_base() as static Alan Cox
2012-03-08 16:15 ` [PATCH 45/47] gma500: psb_intel_display: drop unused variables Alan Cox
2012-03-08 16:15 ` [PATCH 46/47] gma500: mark psb_intel_sdvo_hdmi_sink_detect() as static Alan Cox
2012-03-08 16:15 ` [PATCH 47/47] gma500: psb_irq: mark mid_{enable, disable}_pipe_event() " Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120308161007.7973.44223.stgit@bob.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.