drm/ttm: Clean up kmap_atomic_prot selection code
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 16 Jan 2018 08:02:03 +0000 (09:02 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 10:09:37 +0000 (11:09 +0100)
commit403c1826a456441ee983acefbd03ce7d73d1ff00
tree816933b8d6400316a2959bc9f10861c64c0ead18
parent25db875401c8aaac31a6650cb80a56cc78852694
drm/ttm: Clean up kmap_atomic_prot selection code

Use helpers to perform the kmap_atomic_prot() functionality to
a) Avoid in-function ifdefs that violate the kernel coding policy,
b) Facilitate exporting the functionality.

This commit should not change any functionality.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/ttm/ttm_bo_util.c