]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: protect FBC functions with FBC checks
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 3 Jul 2015 18:40:54 +0000 (15:40 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Jul 2015 12:34:27 +0000 (14:34 +0200)
commite783a1bb710fd9eba684786ea452655ecb5a104a
tree9f1444da06fc4598cb4bf81da40ca74e3361aa90
parent4fd9e56e89d0aa2e924521520d44668063370a68
drm/i915: protect FBC functions with FBC checks

Now all the functions called by other files check whether FBC has been
initialized. This allows us to drop the checks on the static
functions.

v2:
 - s/HAS_FBC/dev_priv->display.enable_fbc/ everywhere but the init
   function (Chris).

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fbc.c