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>
This commit is contained in:
He Lugang 2024-09-11 18:22:15 +08:00 • committed by Rodrigo Vivi
commit fdc81c43f0
No known key found for this signature in database
GPG key ID: FA625F640EEB13CA
2 changed files with 3 additions and 3 deletions