diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 841f0397288b..49c07231302c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3885,10 +3885,7 @@ static bool g4x_compute_srwm(struct drm_device *dev, | |||
3885 | display, cursor); | 3885 | display, cursor); |
3886 | } | 3886 | } |
3887 | 3887 | ||
3888 | static inline bool single_plane_enabled(unsigned int mask) | 3888 | #define single_plane_enabled(mask) is_power_of_2(mask) |
3889 | { | ||
3890 | return mask && (mask & -mask) == 0; | ||
3891 | } | ||
3892 | 3889 | ||
3893 | static void g4x_update_wm(struct drm_device *dev) | 3890 | static void g4x_update_wm(struct drm_device *dev) |
3894 | { | 3891 | { |