From: Imre Deak Date: Fri, 18 Apr 2014 13:01:02 +0000 (+0300) Subject: drm/i915: sanitize enable_rc6 option X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~56^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6069ca84dfafbfdbd0d429445b5858ec5b090ac;p=pandora-kernel.git drm/i915: sanitize enable_rc6 option Atm, an invalid enable_rc6 module option will be silently ignored, so emit an info message about it. Doing an early sanitization we can also reuse intel_enable_rc6() in a follow-up patch to see if RC6 is actually enabled. Currently the caller would have to filter a non-zero return value based on the platform we are running on. For example on VLV with i915.enable_rc6 set to 2, RC6 won't be enabled but atm intel_enable_rc6() would still return 2 in this case. v2: - simplify the platform check condition (Ville) Signed-off-by: Imre Deak Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed