summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2021-06-16 10:02:18 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-06-30 00:18:23 -0400
commit75ae84c89b136a5c0193ab7064b03cddfcebba39 (patch)
tree7708714d03dbe21e411c41c370917aecf914360a /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentff4b601a0541ad539947a135205b8125880ac3b4 (diff)
downloadlinux-75ae84c89b136a5c0193ab7064b03cddfcebba39.tar.bz2
drm/amdkfd: add helper function for kfd sysfs create
No functionality change. Modify kfd_sysfs_create_file to use kobject as parameter, so it becomes common helper function to remove duplicate code and will simplify new kfd sysfs file create in future. Move pr_warn to helper function if sysfs file create failed. Set helper function as void return because caller doesn't use the helper function return value. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions