diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-11-21 14:22:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 15:39:59 -0800 |
commit | b5ed2b28433e9b8826a30fbc942bc2309dca7031 (patch) | |
tree | 9f86a5dff0a1254a3365fd34301c2d539378635f | |
parent | 24001039a4618e80cdf44a2b2970001dd8e63029 (diff) | |
download | op-kernel-dev-b5ed2b28433e9b8826a30fbc942bc2309dca7031.zip op-kernel-dev-b5ed2b28433e9b8826a30fbc942bc2309dca7031.tar.gz |
staging: comedi: adv_pci1723: remove board reset during (*detach)
The pci1723_reset() function simply resets all the analog output channels
to 0V and a +/-10V range. This really isn't necessary when detaching the
driver.
Remove the board reset and just use comedi_pci_detach() directly for 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/adv_pci1723.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/comedi/drivers/adv_pci1723.c b/drivers/staging/comedi/drivers/adv_pci1723.c index 87f7836..1b59eb2 100644 --- a/drivers/staging/comedi/drivers/adv_pci1723.c +++ b/drivers/staging/comedi/drivers/adv_pci1723.c @@ -259,18 +259,11 @@ static int pci1723_auto_attach(struct comedi_device *dev, return 0; } -static void pci1723_detach(struct comedi_device *dev) -{ - if (dev->iobase) - pci1723_reset(dev); - comedi_pci_detach(dev); -} - static struct comedi_driver adv_pci1723_driver = { .driver_name = "adv_pci1723", .module = THIS_MODULE, .auto_attach = pci1723_auto_attach, - .detach = pci1723_detach, + .detach = comedi_pci_detach, }; static int adv_pci1723_pci_probe(struct pci_dev *dev, |