drm/xe: use devm_add_action_or_reset() helper
authorHe Lugang <helugang@uniontech.com>
Wed, 11 Sep 2024 10:22:15 +0000 (18:22 +0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 16 Sep 2024 16:35:15 +0000 (12:35 -0400)
commitfdc81c43f0c14ace6383024a02585e3fcbd1ceba
tree72df363d2390ffccc1ea2c4cc73dc13906f9b1ac
parent20e3aa503feb2deafd4185f50cee0da047f62e21
drm/xe: use devm_add_action_or_reset() helper

Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: He Lugang <helugang@uniontech.com>
Link: https://patchwork.freedesktop.org/patch/msgid/9631BC17D1E028A2+20240911102215.84865-1-helugang@uniontech.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_freq.c
drivers/gpu/drm/xe/xe_gt_sysfs.c