OSDN Git Service

amdgpu: Pass file descriptor directly to amdgpu_close_kms_handle
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 13 Jun 2019 15:06:42 +0000 (17:06 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 1 Jul 2019 09:31:51 +0000 (11:31 +0200)
commitb12282db9cef4aa4f9038f0248ecdd30f02bb439
treee0bf12fc27ff1177cc43672ee5f4bce316698bfa
parentcecedcb8a1c87c564cb34bc8725ae9bec68c4a1c
amdgpu: Pass file descriptor directly to amdgpu_close_kms_handle

And propagate drmIoctl's return value.

This allows replacing all remaining open-coded DRM_IOCTL_GEM_CLOSE
ioctl calls with amdgpu_close_kms_handle calls.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
amdgpu/amdgpu_bo.c