Skip to content

Commit 9cd27ee

Browse files
tejasuplucasdemarchi
authored andcommitted
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 15b3036) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 95af8f4 commit 9cd27ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,12 @@ void xe_device_remove(struct xe_device *xe)
983983

984984
void xe_device_shutdown(struct xe_device *xe)
985985
{
986-
struct xe_gt *gt;
987-
u8 id;
988-
989986
drm_dbg(&xe->drm, "Shutting down device\n");
990987

991988
if (xe_driver_flr_disabled(xe)) {
989+
struct xe_gt *gt;
990+
u8 id;
991+
992992
xe_display_pm_shutdown(xe);
993993

994994
xe_irq_suspend(xe);

0 commit comments

Comments
 (0)