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