diff options
| author | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2025-10-07 13:02:08 +0300 |
|---|---|---|
| committer | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2025-10-08 12:37:41 +0300 |
| commit | 15b3036045188f4da4ca62b2ed01b0f160252e9b (patch) | |
| tree | 58db17d735aec04ea5dcf273cc62420fc1c1809b | |
| parent | c09a9933af08cdcb295ccc65a6d9862bf8474706 (diff) | |
| download | linux-15b3036045188f4da4ca62b2ed01b0f160252e9b.tar.xz | |
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>
| -rw-r--r-- | drivers/gpu/drm/xe/xe_device.c | 6 |
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 386940323630..ab0302d5f25f 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -986,12 +986,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); |
