1. 08 Jul, 2011 2 commits
    • Alan Cox's avatar
      gma500: Re-order checks and dereferences in psb_intel_lvds · d3cf695c
      Alan Cox authored
      Dan Carpenter reports:
      
      Smatch complains about 6a7afe3a "gma500: continue abstracting
      platform specific code"
      
      drivers/staging/gma500/psb_intel_lvds.c +579 psb_intel_lvds_set_property(7)
      	warn: variable dereferenced before check 'encoder'
      
      	--- a/drivers/staging/gma500/psb_intel_lvds.c
      	+++ b/drivers/staging/gma500/psb_intel_lvds.c
      	@@ -575,11 +575,12 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
      					       struct drm_property *property,
      					       uint64_t value)
      	 {
      	-       struct drm_encoder *pEncoder = connector->encoder;
      	+       struct drm_encoder *encoder = connector->encoder;
      	+       struct drm_psb_private *dev_priv = encoder->dev->dev_private;
      						   ^^^^^^^^^^^^
      dereference encoder here.
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d3cf695c
    • Jesper Juhl's avatar
      gma500: strip unneeded version headers · fa3b1c88
      Jesper Juhl authored
      Remove unneeded version.h includes from drivers/staging/gma500/
      
      It was pointed out by 'make versioncheck' that some includes of
      linux/version.h are not needed in drivers/staging/gma500/.
      This patch removes them.
      Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
      [updated for all th file cleanup and movement]
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      fa3b1c88
  2. 06 Jul, 2011 38 commits