drm/i915: add HAS_BSD check to i915_getparam
authorZou Nan hai <nanhai.zou@intel.com>
Mon, 31 May 2010 05:58:47 +0000 (13:58 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 1 Jun 2010 18:21:09 +0000 (11:21 -0700)
commite3a815fcd38043b8f1bb526123d8ab6ae01deb77
tree903c75fcd0e5cc7ef20885562c7807de23323968
parent9bc354998f8aa8a83b0cd430e8fcf2cbc3be7367
drm/i915: add HAS_BSD check to i915_getparam

This will let userland only try to use the new media decode
functionality when the appropriate kernel is present.

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c
include/drm/i915_drm.h