diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index ed15c00aecdf..6cbbe5c3e062 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -1232,8 +1232,7 @@ static bool | |||
1232 | intel_sdvo_multifunc_encoder(struct intel_sdvo *intel_sdvo) | 1232 | intel_sdvo_multifunc_encoder(struct intel_sdvo *intel_sdvo) |
1233 | { | 1233 | { |
1234 | /* Is there more than one type of output? */ | 1234 | /* Is there more than one type of output? */ |
1235 | int caps = intel_sdvo->caps.output_flags & 0xf; | 1235 | return hweight16(intel_sdvo->caps.output_flags) > 1; |
1236 | return caps & -caps; | ||
1237 | } | 1236 | } |
1238 | 1237 | ||
1239 | static struct edid * | 1238 | static struct edid * |