]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/mmio: move mmio_fini over to devm
authorMatthew Auld <matthew.auld@intel.com>
Wed, 22 May 2024 10:21:57 +0000 (11:21 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 22 May 2024 12:22:40 +0000 (13:22 +0100)
commita0b834c8957a7d2848face008a12382a0ad11ffc
treedd8b8042b2fb4f863bc2e9dabdc016cda483fcb7
parentcd506a33b0d9759e0a58556799b1b38650fa3698
drm/xe/mmio: move mmio_fini over to devm

Not valid to touch mmio once the device is removed, so make sure we
unmap on removal and not just when driver instance goes away. Also set
the mmio pointers to NULL to hopefully catch such issues more easily.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522102143.128069-32-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_mmio.c