Re: [PATCH] sound: pci: asihpi: use pcim_iomap for managed PCI memory mapping

From: Takashi Iwai

Date: Tue Aug 11 2026 - 02:21:25 EST


On Tue, 11 Aug 2026 06:21:22 +0200,
Rosen Penev wrote:
>
> Replace manual ioremap() calls with pcim_iomap() which uses devres
> for automatic cleanup. This eliminates the need for manual iounmap()
> in both the error path of asihpi_adapter_probe() and the
> asihpi_adapter_remove() function.
>
> The pcim_iomap() helper is cleaner and less error-prone since it
> handles unmapping automatically when the PCI device is released.
>
> Assisted-by: opencode/big-pickle
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Applied to for-next branch. Thanks.


Takashi