]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Fix copyright and function naming in xe_ttm_sys_mgr
authorShuicheng Lin <shuicheng.lin@intel.com>
Thu, 9 Oct 2025 23:02:28 +0000 (23:02 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 10 Oct 2025 19:10:13 +0000 (15:10 -0400)
- Correct Red Hat copyright year from "2002" to "2022".
- Rename ttm_sys_mgr_fini() to xe_ttm_sys_mgr_fini() to avoid
  confusion with generic TTM helpers.

No functional changes intended.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://lore.kernel.org/r/20251009230239.2830207-6-shuicheng.lin@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ttm_sys_mgr.c

index d38b91872da3cdc24cd1105eac98673e0b44ec4f..3e404eb8d09896291dd876f9fd5abdd76e03f538 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: MIT
 /*
  * Copyright © 2021-2022 Intel Corporation
- * Copyright (C) 2021-2002 Red Hat
+ * Copyright (C) 2021-2022 Red Hat
  */
 
 #include "xe_ttm_sys_mgr.h"
@@ -85,7 +85,7 @@ static const struct ttm_resource_manager_func xe_ttm_sys_mgr_func = {
        .debug = xe_ttm_sys_mgr_debug
 };
 
-static void ttm_sys_mgr_fini(struct drm_device *drm, void *arg)
+static void xe_ttm_sys_mgr_fini(struct drm_device *drm, void *arg)
 {
        struct xe_device *xe = (struct xe_device *)arg;
        struct ttm_resource_manager *man = &xe->mem.sys_mgr;
@@ -116,5 +116,5 @@ int xe_ttm_sys_mgr_init(struct xe_device *xe)
        ttm_resource_manager_init(man, &xe->ttm, gtt_size >> PAGE_SHIFT);
        ttm_set_driver_manager(&xe->ttm, XE_PL_TT, man);
        ttm_resource_manager_set_used(man, true);
-       return drmm_add_action_or_reset(&xe->drm, ttm_sys_mgr_fini, xe);
+       return drmm_add_action_or_reset(&xe->drm, xe_ttm_sys_mgr_fini, xe);
 }