]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: aspeed: Use devm_iounmap() to unmap devm_ioremap() memory
authorChin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Wed, 5 Nov 2025 08:49:52 +0000 (16:49 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 5 Nov 2025 11:56:27 +0000 (11:56 +0000)
commit2f538ef9f6f7c3d700c68536f21447dfc598f8c8
treeaa407c4ab09b5478fa2051d876af29f235f708e9
parent8b6faa7fddf0ae69c5f1a9315a64edee6f022037
spi: aspeed: Use devm_iounmap() to unmap devm_ioremap() memory

The AHB IO memory for each chip select is mapped using
devm_ioremap(), so it should be unmapped using devm_iounmap()
to ensure proper device-managed resource cleanup.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510292356.JnTUBxCl-lkp@intel.com/
Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://patch.msgid.link/20251105084952.1063489-1-chin-ting_kuo@aspeedtech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-aspeed-smc.c