Commit db3461a7 authored by Matthew Brost's avatar Matthew Brost Committed by Lucas De Marchi

drm/xe: Use for_each_remote_tile rather than manual check

Replace for_each_tile plus a check against primary tile with
for_each_remote_tile in tiles_fini. The latter macro does this for us.
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240816040208.62695-1-matthew.brost@intel.comSigned-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 5a891a0e
......@@ -29,8 +29,7 @@ static void tiles_fini(void *arg)
struct xe_tile *tile;
int id;
for_each_tile(tile, xe, id)
if (tile != xe_device_get_root_tile(xe))
for_each_remote_tile(tile, xe, id)
tile->mmio.regs = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment