]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Switch from xe to devm actions
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 22 Feb 2025 00:10:45 +0000 (16:10 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 25 Feb 2025 22:29:06 +0000 (14:29 -0800)
Now that component drivers are compatible with devm, switch to using it
instead of our own.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-6-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/xe_gsc_proxy.c

index 7fef78f5606dfbb2ef122b2515f0f6311e28fc24..1909effd35a9faeabb3d172332036b0b53a5c074 100644 (file)
@@ -184,7 +184,7 @@ int xe_display_init(struct xe_device *xe)
        if (err)
                return err;
 
-       return xe_device_add_action_or_reset(xe, xe_display_fini, xe);
+       return devm_add_action_or_reset(xe->drm.dev, xe_display_fini, xe);
 }
 
 void xe_display_register(struct xe_device *xe)
index 31c90577faf0b0dbc790f849641ab7d6de5b05f9..8cf70b228ff3b68370673e25c79c5a6c7c1c0426 100644 (file)
@@ -490,7 +490,7 @@ int xe_gsc_proxy_init(struct xe_gsc *gsc)
 
        gsc->proxy.component_added = true;
 
-       return xe_device_add_action_or_reset(xe, xe_gsc_proxy_remove, gsc);
+       return devm_add_action_or_reset(xe->drm.dev, xe_gsc_proxy_remove, gsc);
 }
 
 /**