From 82b117980acdc1651b51ccb1f2af6becb350daf7 Mon Sep 17 00:00:00 2001 From: Michal Wajdeczko Date: Mon, 22 Jun 2026 15:23:40 +0200 Subject: [PATCH] drm/xe/mmio: Drop tiles_fini action The pointer zeroing is not required, as we check xe->mmio.regs to test if code is not trying to access MMIO after a driver unwind. Signed-off-by: Michal Wajdeczko Cc: Matthew Auld Reviewed-by: Matthew Auld Link: https://patch.msgid.link/20260622132342.19600-5-michal.wajdeczko@intel.com --- drivers/gpu/drm/xe/xe_mmio.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c index 8dd818e1184c..58226cd8b399 100644 --- a/drivers/gpu/drm/xe/xe_mmio.c +++ b/drivers/gpu/drm/xe/xe_mmio.c @@ -24,16 +24,6 @@ #include "generated/xe_device_wa_oob.h" -static void tiles_fini(void *arg) -{ - struct xe_device *xe = arg; - struct xe_tile *tile; - int id; - - for_each_remote_tile(tile, xe, id) - tile->mmio.regs = NULL; -} - /* * On multi-tile devices, partition the BAR space for MMIO on each tile, * possibly accounting for register override on the number of tiles available. @@ -74,8 +64,7 @@ int xe_mmio_probe_tiles(struct xe_device *xe) size_t tile_mmio_size = SZ_16M; mmio_multi_tile_setup(xe, tile_mmio_size); - - return devm_add_action_or_reset(xe->drm.dev, tiles_fini, xe); + return 0; } static void mmio_fini(void *arg)