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

Takashi Iwai <[email protected]>
Newsgroups gmane.linux.sound,gmane.linux.kernel
Message-ID <[email protected]>
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 <[email protected]>

Applied to for-next branch.  Thanks.


Takashi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.