drm/i915: Compile out error state without DEBUG_FS
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Aug 2010 07:19:30 +0000 (08:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:23:55 +0000 (10:23 +0100)
commit3bd3c9329973a93fa3ef5e9840f2fd6fa2889e3f
treeff0f4e7631d46664c5c6b9990a283842b597b8b1
parentb303cf9542b016e2af3b9d17255a7f93cd790ef5
drm/i915: Compile out error state without DEBUG_FS

Alexander reported that the compilation of intel_overlay.c was failing
due to an inclusion that was only valid with CONFIG_DEBUG_FS. As the
whole error reporting is only useful with debugfs enabled, remove all
the redundant error state collection code when compiling without
CONFIG_DEBUG_FS.

Reported-by: Alexander Lam <lambchop468@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_overlay.c