drm: Make locked tasklet handling more robust.
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>
Tue, 24 Oct 2006 13:30:01 +0000 (23:30 +1000)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:29 +0000 (15:53 +1100)
commit8163e418f71e46a28bac6625b4c633c13bd53c8d
tree57f15bc4ed9b8a12f50a4e993b3be9cd7363f739
parent507c0185a72e89002757a58f6c64de3df84da0de
drm: Make locked tasklet handling more robust.

Initialize the spinlock unconditionally when struct drm_device is filled in,
and return early in drm_locked_tasklet() if the driver doesn't support IRQs.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_irq.c
drivers/char/drm/drm_stub.c