diff options
author | Matthew Auld <matthew.auld@intel.com> | 2024-05-22 11:21:53 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2024-05-22 13:22:39 +0100 |
commit | cee70645a7499e3a2731953db80124c9d5405d5f (patch) | |
tree | 15df2fd7575c61bcfeaf5fc031305d75978d6789 /drivers/gpu/drm/xe/xe_device.c | |
parent | bc54f42c0efaa81b42b53ce5f2423f7778d82516 (diff) |
drm/xe/device: move xe_device_sanitize over to devm
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
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 866c996df27a..b825788067fc 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -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; @@ -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); |