Commit 5056d87a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_daq_700: use comedi_pcmcia_disable() for (*detach)

The (*detach) function, daq700_detach() is now a simple wrapper around
comedi_pcmcia_disable(). Just use comedi_pcmcia_disable() directly for
the (*detach).
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7dc99109
...@@ -245,16 +245,11 @@ static int daq700_auto_attach(struct comedi_device *dev, ...@@ -245,16 +245,11 @@ static int daq700_auto_attach(struct comedi_device *dev,
return 0; return 0;
} }
static void daq700_detach(struct comedi_device *dev)
{
comedi_pcmcia_disable(dev);
}
static struct comedi_driver daq700_driver = { static struct comedi_driver daq700_driver = {
.driver_name = "ni_daq_700", .driver_name = "ni_daq_700",
.module = THIS_MODULE, .module = THIS_MODULE,
.auto_attach = daq700_auto_attach, .auto_attach = daq700_auto_attach,
.detach = daq700_detach, .detach = comedi_pcmcia_disable,
}; };
static int daq700_cs_attach(struct pcmcia_device *link) static int daq700_cs_attach(struct pcmcia_device *link)
......
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