Commit 5668ddf0 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: amplc_pci230: set detach handler to comedi_pci_detach()

Since the comedi driver's "detach`" handler `pci230_detach()` now merely
calls `comedi_pci_detach()` with the same parameter, use
`comedi_pci_detach()` itself as the "detach" handler.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 228df3c9
...@@ -2732,16 +2732,11 @@ static int pci230_auto_attach(struct comedi_device *dev, ...@@ -2732,16 +2732,11 @@ static int pci230_auto_attach(struct comedi_device *dev,
return pci230_attach_common(dev, pci_dev); return pci230_attach_common(dev, pci_dev);
} }
static void pci230_detach(struct comedi_device *dev)
{
comedi_pci_detach(dev);
}
static struct comedi_driver amplc_pci230_driver = { static struct comedi_driver amplc_pci230_driver = {
.driver_name = "amplc_pci230", .driver_name = "amplc_pci230",
.module = THIS_MODULE, .module = THIS_MODULE,
.auto_attach = pci230_auto_attach, .auto_attach = pci230_auto_attach,
.detach = pci230_detach, .detach = comedi_pci_detach,
}; };
static int amplc_pci230_pci_probe(struct pci_dev *dev, static int amplc_pci230_pci_probe(struct pci_dev *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment