summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-10-20 11:34:29 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 15:58:37 +0800
commit22be3f81429608aad8229ee60e8f834024291f09 (patch)
treed8b91e4c48dce4a84874758c19f3fdea19516429
parenta2eb0fd71c7729625bd5d7168c01f89a8d51af37 (diff)
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: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/addi_apci_3120.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3120.c b/drivers/staging/comedi/drivers/addi_apci_3120.c
index 3b4fa2ebbc85..e5dbbdf33b40 100644
--- a/drivers/staging/comedi/drivers/addi_apci_3120.c
+++ b/drivers/staging/comedi/drivers/addi_apci_3120.c
@@ -239,8 +239,6 @@ static int apci3120_auto_attach(struct comedi_device *dev,
static void apci3120_detach(struct comedi_device *dev)
{
- if (dev->iobase)
- apci3120_reset(dev);
comedi_pci_detach(dev);
apci3120_dma_free(dev);
}