aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-04-20 18:06:31 -0400
committerKristian Høgsberg <krh@redhat.com>2007-04-20 18:06:31 -0400
commitaf3ffcd822e562b02fe0671e7e88d9c5a6225658 (patch)
tree8b4553ed7d4a9ff90275ab433512d6cdceedc1ea
parenta8a8108e459977ec8b334e517abd67e1b264337e (diff)
Initialize rwlock using rwlock_init to appease lockdep validator.
-rw-r--r--linux-core/drm_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index 441e7631..088c50d6 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -499,7 +499,7 @@ void drm_fence_manager_init(drm_device_t * dev)
int i;
- fm->lock = RW_LOCK_UNLOCKED;
+ rwlock_init(&fm->lock);
write_lock(&fm->lock);
fm->initialized = 0;
if (!fed)