diff options
author | Huang Rui <ray.huang@amd.com> | 2018-08-15 15:39:33 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 11:11:02 -0500 |
commit | 02b29caf18b3b0f6ff7b7d0b639060893cddf930 (patch) | |
tree | a76f8dc08c9234ca7868c012f3379735bfc9fc07 /drivers/gpu/drm/ttm/ttm_bo_util.c | |
parent | 09b6f25b55d9c66af7302e1f09ad90aa5b1dfbcb (diff) | |
download | kernel_replicant_linux-02b29caf18b3b0f6ff7b7d0b639060893cddf930.tar.gz kernel_replicant_linux-02b29caf18b3b0f6ff7b7d0b639060893cddf930.tar.bz2 kernel_replicant_linux-02b29caf18b3b0f6ff7b7d0b639060893cddf930.zip |
drm/ttm: remove dead codes
These codes are not used.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo_util.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 046a6dda690a..ba80150d1052 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c @@ -629,10 +629,7 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo, return -EINVAL; if (start_page > bo->num_pages) return -EINVAL; -#if 0 - if (num_pages > 1 && !capable(CAP_SYS_ADMIN)) - return -EPERM; -#endif + (void) ttm_mem_io_lock(man, false); ret = ttm_mem_io_reserve(bo->bdev, &bo->mem); ttm_mem_io_unlock(man); |