Skip to content

Commit

Permalink
drm/xe/device: move xe_device_sanitize over to devm
Browse files Browse the repository at this point in the history
Disable GuC submission when removing the device.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522102143.128069-28-matthew.auld@intel.com
  • Loading branch information
Matthew Auld committed May 22, 2024
1 parent bc54f42 commit cee7064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/xe/xe_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ static void xe_driver_flr_fini(void *arg)
xe_driver_flr(xe);
}

static void xe_device_sanitize(struct drm_device *drm, void *arg)
static void xe_device_sanitize(void *arg)
{
struct xe_device *xe = arg;
struct xe_gt *gt;
Expand Down Expand Up @@ -649,7 +649,7 @@ int xe_device_probe(struct xe_device *xe)

xe_hwmon_register(xe);

return drmm_add_action_or_reset(&xe->drm, xe_device_sanitize, xe);
return devm_add_action_or_reset(xe->drm.dev, xe_device_sanitize, xe);

err_fini_display:
xe_display_driver_remove(xe);
Expand Down

0 comments on commit cee7064

Please sign in to comment.