drivers: gpu: Remove unused function in ttm_lock.c
authorRashika Kheria <[email protected]>
Mon, 6 Jan 2014 16:45:56 +0000 (22:15 +0530)
committerThomas Hellstrom <[email protected]>
Wed, 8 Jan 2014 12:24:14 +0000 (13:24 +0100)
Remove unused function ttm_write_lock_downgrade() from
drm/ttm/ttm_lock.c.

This eliminates the following warning in drm/ttm/ttm_lock.c:
drivers/gpu/drm/ttm/ttm_lock.c:189:6: warning: no previous prototype for ‘ttm_write_lock_downgrade’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
drivers/gpu/drm/ttm/ttm_lock.c

index 3daa9a3930b810c5adaf310a3dbea89e0e73343d..6a954544727f3f13cfa8d9be0b8ff4cbf39d9367 100644 (file)
@@ -186,14 +186,6 @@ int ttm_write_lock(struct ttm_lock *lock, bool interruptible)
 }
 EXPORT_SYMBOL(ttm_write_lock);
 
-void ttm_write_lock_downgrade(struct ttm_lock *lock)
-{
-       spin_lock(&lock->lock);
-       lock->rw = 1;
-       wake_up_all(&lock->queue);
-       spin_unlock(&lock->lock);
-}
-
 static int __ttm_vt_unlock(struct ttm_lock *lock)
 {
        int ret = 0;