drm/i915: properly check for MODESET for kms driver ioctls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Apr 2012 07:55:08 +0000 (09:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:13 +0000 (11:18 +0200)
commit1cff8f6b4c668a060c7e3f82d3f1fb5aaa37edc4
tree1ceab1794043c677b541d3bee50a33f72e0527e4
parent13a86b85aca24f825c7843cdcd81eaff19fa4ea9
drm/i915: properly check for MODESET for kms driver ioctls

Also ditch the cargo-culted dev_priv checks - either we have a
giant hole in our setup code or this is useless. Plainly bogus
to check for it in either case.

v2: Chris Wilson noticed that I've missed one bogus dev_priv check.

v3: The check in the overlay code is redundant (Chris)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_overlay.c
drivers/gpu/drm/i915/intel_sprite.c