summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTejas Upadhyay <tejas.upadhyay@intel.com>2025-10-07 15:32:08 +0530
committerLucas De Marchi <lucas.demarchi@intel.com>2025-11-07 03:05:20 -0800
commit9cd27eec872f0b95dcdd811edc39d2d32e4158c8 (patch)
treea2081287a7f5a697629fab6fce50d79af9bb8664
parent95af8f4fdce8349a5fe75264007f1af2aa1082ea (diff)
downloadlinux-9cd27eec872f0b95dcdd811edc39d2d32e4158c8.tar.gz
linux-9cd27eec872f0b95dcdd811edc39d2d32e4158c8.tar.bz2
linux-9cd27eec872f0b95dcdd811edc39d2d32e4158c8.zip
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: Nitin Gote <nitin.r.gote@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20251007100208.1407021-1-tejas.upadhyay@intel.com Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> (cherry picked from commit 15b3036045188f4da4ca62b2ed01b0f160252e9b) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
-rw-r--r--drivers/gpu/drm/xe/xe_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 34d33965eac2..132530e5a3db 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -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);