Commit dccdb2fc authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman
Browse files

uio: uio_aec: Use pci_iounmap instead of iounmap



'pci_iomap()' is used in the probe and 'pci_iounmap()' in the error
handling path of the probe.
So keep things consistent and use 'pci_iounmap()' also in the remove
function.

Fixes: 1bafeb37 ("uio: add the uio_aec driver")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f6b2a09a45658e8ef552aa34f0b8615dc1c35838.1620546705.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 17e336db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ static void remove(struct pci_dev *pdev)
	uio_unregister_device(info);
	pci_release_regions(pdev);
	pci_disable_device(pdev);
	iounmap(info->priv);
	pci_iounmap(pdev, info->priv);
}

static struct pci_driver pci_driver = {