drm/ttm: rename and cleanup ttm_bo_init
authorChristian König <christian.koenig@amd.com>
Fri, 18 Feb 2022 13:32:53 +0000 (14:32 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 11 Jul 2022 08:53:13 +0000 (10:53 +0200)
commit347987a2cf0d146484d1c586951ef10028bb1674
tree7761393b1b06fc5f80e2836369c85abdcef680cb
parent20529e260ff2fb4a00b54a1e625ebebe5d1a6210
drm/ttm: rename and cleanup ttm_bo_init

Rename ttm_bo_init to ttm_bo_init_validate since that better matches
what the function is actually doing.

Remove the unused size parameter, move the function's kerneldoc to the
implementation and cleanup the whole error handling.

Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220707102453.3633-2-christian.koenig@amd.com
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/qxl/qxl_object.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
include/drm/ttm/ttm_bo_api.h