Commit 9cd27eec authored by Tejas Upadhyay's avatar Tejas Upadhyay Committed by Lucas De Marchi
Browse files

drm/xe: Move declarations under conditional branch



The xe_device_shutdown() function was needing a few declarations
that were only required under a specific condition. This change
moves those declarations to be within that conditional branch
to avoid unnecessary declarations.

Reviewed-by: default avatarNitin Gote <nitin.r.gote@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251007100208.1407021-1-tejas.upadhyay@intel.com


Signed-off-by: default avatarTejas Upadhyay <tejas.upadhyay@intel.com>
(cherry picked from commit 15b30360)
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 95af8f4f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -983,12 +983,12 @@ void xe_device_remove(struct xe_device *xe)

void xe_device_shutdown(struct xe_device *xe)
{
	struct xe_gt *gt;
	u8 id;

	drm_dbg(&xe->drm, "Shutting down device\n");

	if (xe_driver_flr_disabled(xe)) {
		struct xe_gt *gt;
		u8 id;

		xe_display_pm_shutdown(xe);

		xe_irq_suspend(xe);