staging: comedi: s626: use comedi_pci_detach()
Use comedi_pci_detach() to handle the boilerplate part of the (*detach) for this PCI driver. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3757e79559
commit
8075bfb675
|
@ -2914,13 +2914,8 @@ static void s626_detach(struct comedi_device *dev)
|
|||
writel(S626_MC1_SHUTDOWN, dev->mmio + S626_P_MC1);
|
||||
writel(S626_ACON1_BASE, dev->mmio + S626_P_ACON1);
|
||||
}
|
||||
|
||||
if (dev->irq)
|
||||
free_irq(dev->irq, dev);
|
||||
if (dev->mmio)
|
||||
iounmap(dev->mmio);
|
||||
}
|
||||
comedi_pci_disable(dev);
|
||||
comedi_pci_detach(dev);
|
||||
s626_free_dma_buffers(dev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue