mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/xe: Switch from xe to devm actions
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>
This commit is contained in:
parent
83e3d08767
commit
01b1ace3b4
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user