staging: comedi: ni_daq_700: use comedi_pcmcia_disable() for (*detach)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 4 Feb 2013 21:22:17 +0000 (14:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 22:47:19 +0000 (14:47 -0800)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_daq_700.c

index 0fe2888..c8f4c7d 100644 (file)
@@ -245,16 +245,11 @@ static int daq700_auto_attach(struct comedi_device *dev,
        return 0;
 }
 
-static void daq700_detach(struct comedi_device *dev)
-{
-       comedi_pcmcia_disable(dev);
-}
-
 static struct comedi_driver daq700_driver = {
        .driver_name    = "ni_daq_700",
        .module         = THIS_MODULE,
        .auto_attach    = daq700_auto_attach,
-       .detach         = daq700_detach,
+       .detach         = comedi_pcmcia_disable,
 };
 
 static int daq700_cs_attach(struct pcmcia_device *link)