Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6f71be3 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_6527: iounmap resource when detached



PCI bar 1 is ioremap'ed during the (*auto_attach). This resource
needs to be iounmap'ed when the driver is (*detach)ed.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53eeeaa6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -474,6 +474,8 @@ static void ni6527_detach(struct comedi_device *dev)
		ni6527_reset(dev);
	if (dev->irq)
		free_irq(dev->irq, dev);
	if (dev->mmio)
		iounmap(dev->mmio);
	comedi_pci_disable(dev);
}