Skip to content

Commit

Permalink
drm/xe: Switch from xe to devm actions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lucas De Marchi committed Feb 25, 2025
1 parent 83e3d08 commit 01b1ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/xe/display/xe_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/xe/xe_gsc_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 01b1ace

Please sign in to comment.