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

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

staging: comedi: addi_apci_3120: don't reset board when detaching driver



The comedi core calls all the subdevice (*cancel) functions before it does
the driver (*detach). There is no reason to call the board reset function
in the (*detach).

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 a2eb0fd7
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -239,8 +239,6 @@ static int apci3120_auto_attach(struct comedi_device *dev,


static void apci3120_detach(struct comedi_device *dev)
static void apci3120_detach(struct comedi_device *dev)
{
{
	if (dev->iobase)
		apci3120_reset(dev);
	comedi_pci_detach(dev);
	comedi_pci_detach(dev);
	apci3120_dma_free(dev);
	apci3120_dma_free(dev);
}
}