Commit cee70645 authored by Matthew Auld's avatar Matthew Auld
Browse files

drm/xe/device: move xe_device_sanitize over to devm



Disable GuC submission when removing the device.

Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarAndrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522102143.128069-28-matthew.auld@intel.com
parent bc54f42c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);